Windows Menu Items Not 'Clickable'

new topic     » topic index » view thread      » older message » newer message

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

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu