Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Skin Framework
  New Posts New Posts RSS Feed - No WM_CTLCOLOR message in skinned property page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

No WM_CTLCOLOR message in skinned property page

 Post Reply Post Reply
Author
Message
brianh View Drop Down
Groupie
Groupie


Joined: 30 April 2004
Location: United Kingdom
Status: Offline
Points: 83
Post Options Post Options   Thanks (0) Thanks(0)   Quote brianh Quote  Post ReplyReply Direct Link To This Post Topic: No WM_CTLCOLOR message in skinned property page
    Posted: 13 November 2006 at 4:48am
Hi, I have a property page that handles the WM_CTLCOLOR message to change the color of some text.  This works fine until I turn on skinning for the dialog, at which point it appears to stop receiving the WM_CTLCOLOR message! 
Is this a bug or am I missing something?
Thanks.
PS. I'm using Toolkit Pro 10.3.1
Back to Top
fbeguec View Drop Down
Newbie
Newbie


Joined: 14 August 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote fbeguec Quote  Post ReplyReply Direct Link To This Post Posted: 14 August 2007 at 9:33am
Hi
 
I got pretty much the same problem but with a Dialog window.
I use :
 
CreateDialogIndirectParam(..)
 
with window style = 
 
DS_MODALFRAME | WS_CLIPCHILDREN | WS_VISIBLE | WS_BORDER | WS_POPUPMENU  WS_MINIMIZEBOX | WS_THICKFRAME
 
and my DialogProc callback function expect to handle WM_CTLCOLORDLG messages, but I just don't receive them anymore when I turn on skinning.
So in skinning mode my windows has a wrong Background color (whiet instead of black).
 
Anyone can help?
 
(i'm using version 11.1.3.0)
 
Thanks
 
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: 14 August 2007 at 10:24am
Hello,
Instead CreateDialogIndirectParam use standard MFC way. CDialog + DoModal.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
fbeguec View Drop Down
Newbie
Newbie


Joined: 14 August 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote fbeguec Quote  Post ReplyReply Direct Link To This Post Posted: 15 August 2007 at 7:59am
Hi
 
Thanks for the reply.
 
Instead CreateDialogIndirectParam use standard MFC way. CDialog + DoModal.
 
I wish i could do so, but the piece of code I'm working on is all written in C... Is there a mean to disables hooks in the C code for a specified HWND?
 
Thanks
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: 15 August 2007 at 12:49pm
Hello,
 
You can cal XTPSkinManager()->Remove(hWnd); bu it will restore original frame for this dialog.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
fbeguec View Drop Down
Newbie
Newbie


Joined: 14 August 2007
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote fbeguec Quote  Post ReplyReply Direct Link To This Post Posted: 17 August 2007 at 8:44am
Hello
 
Ok Thanks, good to know.
Really strange though that there is no mean to specify a dialog's BackGround brush anymore once skinning is on..
 
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.234 seconds.