how to change the edit background color
Hi
I created a document based application use window programming
I mean not VC++. On the document view i created a edit box
, and try to chang the background color but I don't know How? I Any help and example
Thanks
robin
email to : [email protected]
how to use WM_CTLCOLOREDIT?
Actually My code:
RECT rect // this is the Edit box Rect
LRESULT CALLBACK EditClassProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
case WM_PAINT:
HBRUSH hBrush;
PAINTSTRUCT ps;
hdc = BeginPaint( m_hWnd, &ps );
hBrush = CreateSolidBrush(rgb);
FillRect (hdc, &rect, hBrush);
DeleteObject (hBrush);
EndPaint( m_hWnd, &ps );
.................
.............
}
it changed the Edit background color but in different position, why,
or how to fix this?
robin luo bin
[email protected]
Tnanks, one more question
How to create bitmap button?