No WM_CTLCOLOR message in skinned property page |
Post Reply |
Author | |
brianh
Groupie Joined: 30 April 2004 Location: United Kingdom Status: Offline Points: 83 |
Post Options
Thanks(0)
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
|
|
fbeguec
Newbie Joined: 14 August 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
Instead CreateDialogIndirectParam use standard MFC way. CDialog + DoModal.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
fbeguec
Newbie Joined: 14 August 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
Hi
Thanks for the reply.
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
|
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hello,
You can cal XTPSkinManager()->Remove(hWnd); bu it will restore original frame for this dialog.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
fbeguec
Newbie Joined: 14 August 2007 Status: Offline Points: 6 |
Post Options
Thanks(0)
|
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..
|
|
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 |