Ver Mensaje Individual
  #3 (permalink)  
Antiguo 16/08/2005, 10:48
nostromo_
 
Fecha de Ingreso: diciembre-2004
Ubicación: Iquique, Chile
Mensajes: 150
Antigüedad: 20 años, 3 meses
Puntos: 0
Holas;

Sip, nuevamente equivocado, tengo lo siguiente:

Código:
BOOL CALLBACK DlgProc (HWND hwndDlg, UINT mensaje, WPARAM wParam, LPARAM lParam)
{
:
etc
    static HBRUSH EditBrush;
    static COLORREF BkEditColor;
    static COLORREF TextoColor = 0;
   
   switch (mensaje)
    {
        case WM_INITDIALOG:
             :
             etc...
              // inicializar colores texto y bk
            BkEditColor = RGB(185,122,0);//GetSysColor(COLOR_GRAYTEXT);
            EditBrush = CreateSolidBrush(BkEditColor);
            return TRUE;
            break;
       case WM_CTLCOLOREDIT:
            //hDapDL<------ control a colorear
            if((HWND)lParam == hDapDL)
            {
                SetTextColor((HDC)wParam,TextoColor);
                SetBkColor((HDC)wParam,BkEditColor);
                return EditBrush;//<----- 119 invalid conversion from `HBRUSH__*' to `int' 
            }
            break;
      case WM_CLOSE:
            DeleteObject(EditBrush);
             salir(hwndDlg);
             return 0;
El error que tengo ahora es este:

return EditBrush;//<----- 119 invalid conversion from `HBRUSH__*' to `int'

Te agradesco la ayuda que me estas brindando.

Nos vemos.