2011-02-27 09:05:10 +00:00
|
|
|
bool pCheckItem::checked() {
|
|
|
|
return checkItem.state.checked;
|
|
|
|
}
|
|
|
|
|
|
|
|
void pCheckItem::setChecked(bool checked) {
|
2011-09-05 03:48:23 +00:00
|
|
|
if(parentMenu) CheckMenuItem(parentMenu->p.hmenu, id, checked ? MF_CHECKED : MF_UNCHECKED);
|
2011-02-27 09:05:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void pCheckItem::setText(const string &text) {
|
|
|
|
if(parentWindow) parentWindow->p.updateMenu();
|
|
|
|
}
|
|
|
|
|
|
|
|
void pCheckItem::constructor() {
|
|
|
|
}
|
2011-09-05 03:48:23 +00:00
|
|
|
|
|
|
|
void pCheckItem::destructor() {
|
|
|
|
if(parentMenu) parentMenu->remove(checkItem);
|
|
|
|
}
|