Re: the menu bar is hidden under the title bar in a frame window generated from a dll ...
- From: "Victor" <nijegorodov.otpusk@xxxxxxxxxx>
- Date: Thu, 17 May 2007 12:52:39 +0200
Couldn't DrawMenuBar help?
Victor
"JD Young" <jdt_young@xxxxxxxxx> wrote in message
news:%23OY4tnnlHHA.1244@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
A very simple frame window generated from a dll of mine always has its
menu bar hidden under the title bar. I have to click on the title bar to
make the menu items show up. The following code that generates the
frame window is actually copied from a small test program to the dll. In
the test program, the code works just fine. So what makes the difference?
I suspect IDR_MENU_TEST is only partially successfully loaded in the dll.
Any reason for it? Pleave provide me any clue and hint. Your help is
much appreciated. (I am using VS 2005)
C2DGraphDoc *pDoc = new C2DGraphDoc;
C2DGraphFrame * pFrame = new C2DGraphFrame();
CCreateContext context;
context.m_pNewViewClass = RUNTIME_CLASS( C2DGraphView );
context.m_pCurrentDoc = pDoc;
BOOL bRes = pFrame->LoadFrame(IDR_MENU_TEST,
WS_OVERLAPPEDWINDOW | FWS_ADDTOTITLE, NULL, &context);
pFrame->SetWindowText( _T("TEST") );
pFrame->ShowWindow(SW_SHOW);
JD
.
- Follow-Ups:
- References:
- Prev by Date: Re: what is the fastest way to sort?
- Next by Date: Re: Calculate exponent
- Previous by thread: Re: the menu bar is hidden under the title bar in a frame window generated from a dll ...
- Next by thread: Re: the menu bar is hidden under the title bar in a frame window generated from a dll ...
- Index(es):
Relevant Pages
|
Loading