|
-
May 4th, 2005, 08:57 AM
#1
Edit Box SetBkColor
Anyone can tell me why this code does not work. The only thing that comes out is that the editbox becomes grey??
I am missing something??
{
PAINTSTRUCT ps;
HWND htest = GetDlgItem(hDlg, IDC_CHANNEL);
HDC hdc = GetWindowDC(htest);
hdc = BeginPaint (htest, &ps);
SetBkMode(hdc, TRANSPARENT);
SetBkColor(hdc, RGB(0, 255, 0));
EndPaint(htest, &ps);
ReleaseDC(htest, hdc);
}
thanks,
see u!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|