Print Page | Close Window

Custom MDI childwnd problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=5986
Printed Date: 19 May 2024 at 3:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Custom MDI childwnd problem
Posted By: gwoin
Subject: Custom MDI childwnd problem
Date 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.



Replies:
Posted By: Oleg
Date 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


Posted By: gwoin
Date Posted: 05 January 2007 at 4:02am
Hi Oleg,
 
Thank you, I didn't know this function.
It works very weel now



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net