NO

Author Topic: One more strange problem  (Read 2228 times)

Grincheux

  • Guest
One more strange problem
« on: March 17, 2016, 06:22:21 PM »
Comboboxes edit fiels are gray with Pelle and Black with MSVC.
Code: [Select]
LRESULT CALLBACK LayerWndProc(HWND __hWnd,UINT __Msg,WPARAM __wParam,LPARAM __lParam)
{
switch(__Msg)
{
case WM_COMMAND : return (Layer_OnCommand(__hWnd,__wParam,__lParam)) ;

case WM_PAINT : return (Layer_OnPaint(__hWnd)) ;

case WM_CTLCOLORBTN : SetBkColor((HDC) __wParam,0) ;
SetTextColor((HDC) __wParam,0xffff00) ;
return ((LRESULT) (HBRUSH) GetStockObject(BLACK_BRUSH)) ;

case WM_CTLCOLOREDIT : SetBkColor((HDC) __wParam,0) ;
SetTextColor((HDC) __wParam,0xffff00) ;
return ((LRESULT) (HBRUSH) GetStockObject(BLACK_BRUSH)) ;

case WM_CTLCOLORLISTBOX : SetBkColor((HDC) __wParam,0xffffff) ;
SetTextColor((HDC) __wParam,0x0000ff) ;
return ((LRESULT) (HBRUSH) GetStockObject(WHITE_BRUSH)) ;

case WM_CTLCOLORSTATIC : SetBkColor((HDC) __wParam,0) ;
SetTextColor((HDC) __wParam,0x00ff00) ;

case WM_CTLCOLORSCROLLBAR :

case WM_CTLCOLORDLG : return ((LRESULT) (HBRUSH) GetStockObject(BLACK_BRUSH)) ;

case WM_NOTIFY : return (Layer_OnNotify(__lParam)) ;

case WM_SIZE : return (Layer_OnSize(LOWORD(__lParam),HIWORD(__lParam))) ;

case WM_CREATE : return (Layer_OnCreate(__hWnd)) ;
}

return (DefWindowProc(__hWnd,__Msg,__wParam,__lParam)) ;
}