I was just wondering how do you change the background text colour (on the caption) on a group box control? aswell as the font and text colour itself.
This is how I create a group box:
and this is how I catch WM_CTLCOLORBTN:Code:CreateWindow("BUTTON", "Foobar...", WS_CHILD | WS_VISIBLE | BS_GROUPBOX, 10, /* X Position */ 10, /* Y Position */ 250, /* X Width */ 250, /* Y Height */ hwnd, (HMENU) -1, hInstance, NULL);
Any help would be appreciated,Code:case WM_CTLCOLORBTN: SetTextColor((HDC)wParam, RGB(255, 0, 0)); SetBkColor((HDC)wParam, RGB(0, 0, 0)); SetBkMode((HDC)wParam, TRANSPARENT); return(LRESULT) GetStockObject(NULL_BRUSH);