Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - Custom MDI childwnd problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom MDI childwnd problem

 Post Reply Post Reply
Author
Message
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Topic: Custom MDI childwnd problem
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
gwoin View Drop Down
Groupie
Groupie
Avatar

Joined: 09 September 2004
Location: France
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote gwoin Quote  Post ReplyReply Direct Link To This Post Posted: 05 January 2007 at 4:02am
Hi Oleg,
 
Thank you, I didn't know this function.
It works very weel now
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.