Не отлавливается сообщение WM_CTLCOLOREDIT
Код:
LRESULT CALLBACK WindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
case WM_CREATE:
{
}
case WM_NOTIFY:
{
}
case WM_SIZE:
{
}
case WM_CTLCOLOREDIT:
{
HDC hdc = GetDC(HEdit->hWnd);
SetTextColor(hdc, RGB(255, 0, 0));
SetBkColor(hdc, RGB(0, 255, 0));
return (LRESULT)CreateSolidBrush(RGB(0, 0, 255));
break;
}
case WM_COMMAND:
{
}
:
:
etc.
}
{
switch (message)
{
case WM_CREATE:
{
}
case WM_NOTIFY:
{
}
case WM_SIZE:
{
}
case WM_CTLCOLOREDIT:
{
HDC hdc = GetDC(HEdit->hWnd);
SetTextColor(hdc, RGB(255, 0, 0));
SetBkColor(hdc, RGB(0, 255, 0));
return (LRESULT)CreateSolidBrush(RGB(0, 0, 255));
break;
}
case WM_COMMAND:
{
}
:
:
etc.
}