in WM_COLORBTN I am using this code
(sorry about the alignment)Code:if(bmatrix[fx][fy]=="green") { SetTextColor((HDC)wParam, RGB(0, 255, 0)); SetBkMode((HDC)wParam, TRANSPARENT); GetClientRect((HWND)lParam, &rt); DrawText((HDC)wParam, TEXT("hello"), -1, &rt, DT_SINGLELINE | DT_VCENTER | DT_CENTER); return (long)hBrush2; }
it works ok, but whenever I push other buttons on my screen, it goes away, and doesn't come back, is there any way to make the text permanent?![]()




Reply With Quote