I have some problems when working with Win32 api.
-
Changing the text and background color of a button doesn't take effect. My code:
case WM_CTLCOLORBTN: COLORREF colorref; colorref = RGB(0,0,255); HBRUSH hBrushBtn; hBrushBtn = CreateSolidBrush(colorref); return ((LRESULT)hBrushBtn); break;
-
How do I create selectable text. My code:
text = CreateWindow("STATIC","text",WS_VISIBLE | WS_CHILD , 0,0,100,60, hwnd , NULL, NULL, NULL);
- How do I create a filled rectangle?