Static Text Color
问题 I have written Following code which will apply color to all static text in one window, but I want to apply two different colors in one window like ID:1234 where ID is another color and 1234 will be different color in one window. How can I do this? here is what i have done: case WM_CTLCOLORSTATIC: SetBkColor( hdc, COLORREF( :: GetSysColor( COLOR_3DFACE) ) ); //sets bckcolor of static text same as window color if ( ( HWND ) lParam == GetDlgItem( hWnd, IDC_PID) ) { SetTextColor( ( HDC ) wParam,