Click here to Skip to main content
15,890,527 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: loading a bitmap from file Pin
Dominik Reichl9-Jun-05 8:48
Dominik Reichl9-Jun-05 8:48 
GeneralRe: loading a bitmap from file Pin
Budric B.9-Jun-05 8:51
Budric B.9-Jun-05 8:51 
Questionhow to count print outs Pin
Ajay Nikam9-Jun-05 8:14
Ajay Nikam9-Jun-05 8:14 
GeneralGet the path to MS Office Pin
Nitron9-Jun-05 8:12
Nitron9-Jun-05 8:12 
GeneralRe: Get the path to MS Office Pin
Kappy9-Jun-05 10:49
Kappy9-Jun-05 10:49 
GeneralRe: Get the path to MS Office Pin
Tom Archer9-Jun-05 16:18
Tom Archer9-Jun-05 16:18 
GeneralRe: Get the path to MS Office Pin
Nitron10-Jun-05 2:42
Nitron10-Jun-05 2:42 
GeneralMenu in child window Pin
PJ Arends9-Jun-05 7:02
professionalPJ Arends9-Jun-05 7:02 
Hey All,

I have a property page with an embedded CFrameWnd that is the child of the page. I can add CToolbars and a CStatusbar with absolutely no problems, and I am using a CRichEditCtrl for the view. But I am unable to add a menu to the frame. Calling SetMenu() fails and GetLastError() returns 0x59c ==> Child windows can not have menus.

Does anyone know of a way that I can add a menu to a child CFrameWnd, in such a way that the default toolbars still work? I tried Yao Zhifeng's CMenuBarXP class[^]. While it did put a menu in place, it did not cooperate with the layout mechanism of the frame and would simply draw itself overtop the toolbar and/or the edit control.

Basicly what I am after is to embed a complete SDI frame window into a CPropertyPage. Any links or hints would be appreciated.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

GeneralRe: Menu in child window Pin
James R. Twine9-Jun-05 7:22
James R. Twine9-Jun-05 7:22 
GeneralRe: Menu in child window Pin
PJ Arends9-Jun-05 17:56
professionalPJ Arends9-Jun-05 17:56 
QuestionHow to Create A Shared Folder Pin
f29-Jun-05 6:41
f29-Jun-05 6:41 
GeneralailFreeing memory Pin
laiju9-Jun-05 4:57
laiju9-Jun-05 4:57 
GeneralRe: ailFreeing memory Pin
Cedric Moonen9-Jun-05 5:05
Cedric Moonen9-Jun-05 5:05 
GeneralRe: ailFreeing memory Pin
Budric B.9-Jun-05 5:13
Budric B.9-Jun-05 5:13 
GeneralRead a line from a text file Pin
bkphat9-Jun-05 4:34
bkphat9-Jun-05 4:34 
GeneralRe: Read a line from a text file Pin
toxcct9-Jun-05 5:18
toxcct9-Jun-05 5:18 
GeneralRe: Read a line from a text file Pin
James R. Twine9-Jun-05 5:49
James R. Twine9-Jun-05 5:49 
GeneralChanging the font of a control ( CStatic ) Pin
Maximilien9-Jun-05 4:34
Maximilien9-Jun-05 4:34 
GeneralRe: Changing the font of a control ( CStatic ) Pin
James R. Twine9-Jun-05 4:42
James R. Twine9-Jun-05 4:42 
GeneralRe: Changing the font of a control ( CStatic ) Pin
Maximilien9-Jun-05 5:32
Maximilien9-Jun-05 5:32 
GeneralRe: Changing the font of a control ( CStatic ) Pin
James R. Twine9-Jun-05 5:45
James R. Twine9-Jun-05 5:45 
GeneralRe: Changing the font of a control ( CStatic ) Pin
Michael Dunn9-Jun-05 6:55
sitebuilderMichael Dunn9-Jun-05 6:55 
GeneralRe: Changing the font of a control ( CStatic ) Pin
Maximilien9-Jun-05 7:04
Maximilien9-Jun-05 7:04 
GeneralMSVCIRT error Pin
ronwurster9-Jun-05 4:06
ronwurster9-Jun-05 4:06 
GeneralRe: MSVCIRT error Pin
Blake Miller9-Jun-05 6:29
Blake Miller9-Jun-05 6:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.