Groupbox: Transparentes Label
-
Hallo Leute,
wie bekomme ich eine transparente Hintergrundfarbe bei der Beschriftung einer
Groupbox (BS_GROUPBOX) hin?Habe schon folgenden Code ausprobiert
(in der Hoffnung, das Label sei vom Typ Static)://Die Hintergrundfarbe bleibt leider immmer noch grau :( case WM_CTLCOLORSTATIC: SetTextColor((HDC)wParam, RGB(0, 0, 0)); SetBkMode((HDC)wParam, TRANSPARENT); return (LRESULT) GetStockObject(NULL_BRUSH);Vielen Dank!
-crazychicken
PS: Die Groupbox erstelle ich so:
CreateWindow("button", "Beschriftung", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 2, 2, 205, 85, hwnd, 0, (HINSTANCE) GetWindowLong(hwnd, GWL_HINSTANCE), 0);
-
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/createwindowex.asp
mit
WS_EX_TRANSPARENT
vielleicht
-
mh - funktioniert leider auch nicht
