how to set the menu bar???
-
have you seen CheckMenuItem
Prasad Notifier using ATL
-
have you seen CheckMenuItem
Prasad Notifier using ATL
DWORD CheckMenuItem(HMENU hmenu, UINT uIDCheckItem, UINT uCheck ); what is HMENU hmenu?
-
DWORD CheckMenuItem(HMENU hmenu, UINT uIDCheckItem, UINT uCheck ); what is HMENU hmenu?
mimimimilaw wrote:
what is HMENU hmenu?
Its handle to menu, Have you seen this example
Prasad Notifier using ATL
-
mimimimilaw wrote:
what is HMENU hmenu?
Its handle to menu, Have you seen this example
Prasad Notifier using ATL
Thx a lot i can do it
-
(1) HMENU hmenu=::GetMenu(m_hWnd); CheckMenuItem(/*Handle from menu(HMENU)*/ GetSubMenu(hmenu,0),ID_FILE_OPEN,MF_BYCOMMAND|MF_CHECKED); --------------------- (2) CMenu *menu=GetMenu(); CMenu *menu22=menu->GetSubMenu(0); menu22->CheckMenuItem(ID_FILE_OPEN,MF_BYCOMMAND|MF_CHECKED);
_**
**_
WhiteSky