WM_CTLCOLORSTATIC on Vista Aero
- From: "Hery Fish" <yh@xxxxxxxxxxxxxx>
- Date: Sat, 1 Dec 2007 21:08:33 +0100
I created a transparent dialogbox. To make the static text control in the dialgbox to be transparent, I processed the WM_CTLCOLORSTATIC with the code like this:
case WM_CTLCOLORSTATIC:
{
HDC hdc=(HDC)wParam;
SetBkMode(hdc, TRANSPARENT);
}
return (INT_PTR)GetStockObject(NULL_BRUSH);
This worked very well on Win98, Win2000, WinXP and even on Windows Vista without Aero.
But, if the Aero is turned on, strange thing happens.
The static control turns into a black block. It seems that NULL_BRUSH does not work in its usual way.
Does anybody know how to fix this? I do not want to turn off the Aero by force in my program.
Thanks a lot in advance.
Henry Fish
.
- Follow-Ups:
- Re: WM_CTLCOLORSTATIC on Vista Aero
- From: Sam Hobbs
- Re: WM_CTLCOLORSTATIC on Vista Aero
- Next by Date: Re: Title Bar With Close Box And No Icon
- Next by thread: Re: WM_CTLCOLORSTATIC on Vista Aero
- Index(es):
Relevant Pages
|