哪一个函数中处理啊??
OnPaint ??
DrawItem??WM_REFLECT_COLOR?  中
到底是哪一个?有区别吗??
另外:  字体大小, 想随着 文本框大小 而 改变, 这个该怎么办?意思就是: 对话框上放文本框控件的时候, 程序员不是可以 放大 、缩小 文本框的大小嘛,我想 字体也 跟着变。。  

解决方案 »

  1.   

    WM_CTLCOLOREDIT
    An edit control that is not read-only or disabled sends the WM_CTLCOLOREDIT message to its parent window when the control is about to be drawn. By responding to this message, the parent window can use the specified device context handle to set the text and background colors of the edit control. A window receives this message through its WindowProc function. LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      UINT uMsg,       // WM_CTLCOLOREDIT
      WPARAM wParam,   // handle to display context (HDC)
      LPARAM lParam    // handle to static control (HWND)
    );
    Parameters
      

  2.   


    LoadCursor
    The LoadCursor function loads the specified cursor resource from the executable (.EXE) file associated with an application instance. Note  This function has been superseded by the LoadImage function.HCURSOR LoadCursor(
      HINSTANCE hInstance,  // handle to application instance
      LPCTSTR lpCursorName  // name or resource identifier
    );