Win32 Window Menu is appearing along left side instead of across top of window

Posted by Khat on Stack Overflow See other posts from Stack Overflow or by Khat
Published on 2011-01-04T05:14:51Z Indexed on 2011/01/04 6:53 UTC
Read the original article Hit count: 249

Filed under:
|
|

I think I may be using a wrong window style or something or maybe just adding the menu to the window incorrectly. I'll post a link to an image here so you can see what I mean about the menu not diplaying correctly:

http://img707.imageshack.us/img707/4828/wtfmenu.jpg

And here's a link to the code that creates the menu and the window:

http://pastebin.com/CBrSVXUD

I'm sure I'm missing something simple and dumb in the labyrinth of styles, settings and etc that are part and parcel for the Win32 API. Has anyone seen this before and know what I'm doing wrong? I just want a 'normal' menu bar along the top, snug against the title bar.

Thanks in advance for any advice.

© Stack Overflow or respective owner

Related posts about c++

Related posts about winapi