Ok the fourm is all messed up. So if this gets posted more than once I am going to be pissed
I have this problem with changing the background color and text color of an edit box. It looks like it is no getting set right on the paint. If you look at the attached pic you will see.
Here is the code:
Any suggestions?PHP Code:case WM_CREATE:
{
hBrush_Changes = CreateSolidBrush(RGB(0,0,0));
hBrush_AppInfo = CreateSolidBrush(RGB(0,0,0));
return DefWindowProc(hWnd, message, wParam, lParam);
}
case WM_CLOSE:
{
DeleteObject(hBrush_Changes);
DeleteObject(hBrush_AppInfo);
DestroyWindow(hWnd);
m_hWnd_About = NULL;
break;
}
case WM_CTLCOLORSTATIC:
if ((HWND)lParam == m_hWnd_Changes)
{
SetTextColor((HDC)wParam, RGB(0,100,255));
SetBkMode((HDC)wParam, TRANSPARENT);
return (long)hBrush_Changes;
}
if ((HWND)lParam == m_hWnd_AppInfo)
{
SetTextColor((HDC)wParam, RGB(0,100,255));
SetBkMode((HDC)wParam, TRANSPARENT);
return (long)hBrush_AppInfo;
}
break;
case WM_PAINT:
{
BeginPaint(hWnd,&ps);
EndPaint(hWnd,&ps);
break;
} //WM_PAINT




Reply With Quote