![]() |
Custom MDI childwnd problem |
Post Reply
|
| Author | |
gwoin
Groupie
Joined: 09 September 2004 Location: France Status: Offline Points: 52 |
Post Options
Thanks(0)
Quote Reply
Topic: Custom MDI childwnd problemPosted: 05 January 2007 at 4:02am |
|
Hi Oleg,
Thank you, I didn't know this function.
It works very weel now
![]() |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 January 2007 at 2:51pm |
|
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)
Quote Reply
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. |
|
![]() |
|
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 |