MenuLib Win32

Everything else that doesn't fall into one of the other PB categories.
va!n
Addict
Addict
Posts: 1104
Joined: Wed Apr 20, 2005 12:48 pm

MenuLib Win32

Post by va!n »

I have taked a clother look to the created executeable when creating a window with a menu, using CreateMenu() and display a small little menu.

Is it possible, that there is missing internally a small API call, because i see you are not using the DrawMenuBar_ API function and this is what i got from API reference:

Code: Select all

The DrawMenuBar function redraws the menu bar of the specified window. If the menu bar changes after Windows has created the window, this function must be called to draw the changed menu bar. 

BOOL DrawMenuBar(

    HWND hWnd	// handle to window with menu bar to redraw  
   );
Because for the ToolBarLib you are using the way as the API reference says, you are using and calling DrawMenuBar_ API but for normal Menus as it seems :wink:
va!n aka Thorsten

Intel i7-980X Extreme Edition, 12 GB DDR3, Radeon 5870 2GB, Windows7 x64,