void MyMenuBar::setToggleButtonState(const ZLToolbar::ToggleButtonItem &button) {
	const std::string &actionId = button.actionId();
	ToolBarButton *tbButton = myButtons[actionId];
	if ((tbButton != 0) && (tbButton->toggle())) {
		changeItem(myActionIndices[actionId], tbButton->pixmap());
	}
}
void ZLWin32ApplicationWindow::setToggleButtonState(const ZLToolbar::ToggleButtonItem &button) {
	Toolbar &tb = toolbar(type(button));
	if (tb.hwnd == 0) {
		return;
	}

	PostMessage(tb.hwnd, TB_CHECKBUTTON, tb.ActionCodeById[button.actionId()], button.isPressed());
}
void ZLbadaApplicationWindow::setToggleButtonState(const ZLToolbar::ToggleButtonItem &button) {
	AppLog("setToggleButtonState %s",button.actionId().c_str());

	//myActions[&button]->setChecked(button.isPressed());
}