|
-
November 15th, 2003, 12:41 AM
#1
Why the text color doesn't change?
switch(message){
case WM_PAINT:
hdc = BeginPaint(hwnd, &ps);
crOld = SetTextColor(hdc, (COLORREF)0x000000FF);
if(crOld == CLR_INVALID) MessageBox(hwnd, "SetTextColor", "Error", MB_OK);
TextOut(hdc, 0, 0, cBuffer, strlen(cBuffer));
EndPaint(hwnd, &ps);
return 0;
Hi, after using the function SetTextColor, why the color of the text remain unchanged? And would you please tell me how to change the size of the font? Thanks a lot!!!
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
|