hi,
i'm trying since a couple of hours to put a menu in a child of a
top level frame window (like MDI but with classes derived from
CFrameWnd). It's ths same when i use a CWnd as the child. i
tryied with CWnd::SetMenu and in PreCreateWindow setting the
hMenu member but it did nothing. i successed in putting a
statusbar but only when my child win is derived from CFrameWnd..
i may search very bad but some help would be very nice :)
thanks,
--
Lucas
Tim Robinson - 01 Apr 2005 21:19 GMT
> i'm trying since a couple of hours to put a menu in a child of a
> top level frame window (like MDI but with classes derived from
[quoted text clipped - 4 lines]
>
> i may search very bad but some help would be very nice :)
Child windows fundamentally can't have menus. If WS_CHILD is specified in a
call to CreateWindow, then the HMENU parameter is really the control ID.
Calling SetMenu on a child window doesn't do anything. MSDN says that "a
menu can be assigned to any window that is not a child window".

Signature
Tim Robinson
MVP, Windows SDK