Windows Menu Items Not 'Clickable'
- Posted by evanmars Jan 22, 2014
- 1683 views
So, I've got a basic window programmed and all seems well so far, except that I none of my menu items are clickable until I press the 'Alt' key. All items on the sub-menus are clickable once they drop down, however, after that I have to press 'Alt' again to activate the menu bar.
Here is the menu function code for the 'File' menu which I call on WM_CREATE:
submenu = c_func(CreatePopupMenu,{}) --FILE menu c_func(AppendMenuA,{submenu, MF_STRING, ID_NEW, Menu_NEW}) c_func(AppendMenuA,{submenu, MF_STRING, ID_OPEN, Menu_OPEN}) c_func(AppendMenuA,{submenu, MF_STRING, ID_SAVE, Menu_SAVE}) c_func(AppendMenuA,{submenu, MF_STRING, ID_SAVEAS, Menu_SAVEAS}) c_func(AppendMenuA,{submenu, MF_STRING, ID_EXIT, Menu_EXIT}) c_func(AppendMenuA,{menubar, MF_STRING + MF_POPUP, submenu, Menu_FILE})
I also have 'Edit', 'View', 'Tools', and 'Help' menu items.
Running Win7