Custom MDI childwnd problem |
Post Reply |
Author | |
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
Posted: 04 January 2007 at 12:27pm |
Hi,
In my application, I have a MDI child window (and only one).
This child frame is derived from CMDIChildWnd to draw custom informations in its title bar (display buttons, dynamic informations, ...), overwritting the "OnNcPaint()" function..
It works fine, but when I move the window with the mouse, my title bar disappears.
It is very annoying.
I already modified the CXTPSkinObjectFrame::UseDefWindowProcAvail(..) method to avoid the "return FALSE;" :
if (HasCaption())
return FALSE;
if (GetExStyle() & WS_EX_MDICHILD)
return FALSE;
Withou that, my title bar is never drawn.
Here are two screen captures explaining the problem:
When I run the application:
Just after moving a little the child window:
Have I to modify another part of the XTP code to get my title bar all the time?
Thank you. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi,
if you manually draw this window better just call XTPSkinManager()->Remove(m_hWnd) to not skin it.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
gwoin
Groupie Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
|
Hi Oleg,
Thank you, I didn't know this function.
It works very weel now
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |