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!!!