Article ID: 108937
Article Last Modified on 3/7/2005
static HBRUS hBrush;
case WM_INITDIALOG:
hBrush = CreateSolidBrush (GetSysColor (COLOR_WINDOW));
break;
case WM_CTLCOLOR:
/* If the control is disabled, set the text color to gray and the
* background color to the system window background color.
*/
hCtl = GetDlgItem (hDlg, IDC_MULTIEDIT );
enabled = IsWindowEnabled(hCtl) ;
if ((!enabled) && (HIWORD(lParam) == CTLCOLOR_EDIT)) {
SetTextColor(wParam, RGB(128,128,128) );
SetBkColor( wParam, GetSysColor (COLOR_WINDOW));
return ((HBRUSH) hBrush);
}
break;
InvalidateRect (hCtl, NULL, TRUE);
UpdateWindow (hCtl);
Additional query words: 3.00 3.10
Keywords: kb16bitonly kbprb kbeditctrl kbctrl KB108937