Re: child view and menu
Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance
The way this is done is that you have a CMultiDocTemplate which specifies the document
class, view class, frame class, and the IDR_ symbol for the resources, which include the
menu, icon, and specification string. You would create your views from this.
Or do you mean you want a menu in EACH child window, and all are the same type? In that
case, you would not SetMenu in the view, you would SetMenu to the parent of the view, the
MDI Child Frame. The view is a child window of the frame, and cannot have a menu.
joe
On Thu, 10 May 2007 06:46:02 -0700, Peter <Peter@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I have MDI application. Main window contains child windows and I want to
create for every child window it's own menu. SetMenu() returns with error:
ERROR_CHILD_WINDOW_MENU.
Does exist way to create menu in child window, or it is not possible ?
Thx!
Peter
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web:
http://www.flounder.com
MVP Tips:
http://www.flounder.com/mvp_tips.htm
.
Relevant Pages
- Re: JInternalFrame and Action Listeners for the parent window
... Is an internal frame listener the best option? ... >> and that opens up another child window of the parent frame but I cant ... And the GUI as ... (comp.lang.java.gui) - Re: More On The Flaws in Einsteins RoS.
... No light *relative to the rod* (captured to the frame of the rod, or as Inertial prefers, captured to the frame of the "moving rod") ever 'passes the rod'. ... Relative to that phantom light traveling in the opposite direction to the rod's travel, the moving rod could travel faster than the speed of light. ... But Inertial specifies "the moving rod's frame" even though he can't do that when specifying that the light is passing, "going past", the moving rod! ... (sci.physics.relativity) - [wxPython] own maximize for wxMDIChildFrame - bugs?
... frame receive too many maximize events on create and on close child window - why? ... how to catch key events for wxMDIParentFrame? ... def __init__: ... (comp.lang.python) - Re: MDI: dont display caption of child window in parents caption
... Frame window is getting text ... caption. ... appending child frame title when child window is maximized is not ... > retrieving child’s window text DefFrameProc uses it to paint NC its area. ... (microsoft.public.vc.mfc.docview) - Re: MDI app: Resize/Position of child frames (VC++ 6.0)
... The problem is that you don't want to manipulate the view; ... create additional frame classes to wrap specific views, ... Alternatively, you can do something like a SendMessage to the child window, either ... (microsoft.public.vc.mfc) |
|