CWnd::OnCtlColor

1193 단어 .netfunction2010

CWnd::OnCtlColor 


Visual Studio 2005
Other Versions
 
  • Visual Studio 2010
  • Visual Studio 2008
  • Visual Studio .NET 2003

  • The framework calls this member function when a child control is about to be drawn.//하위 공간 그리기 시 이 함수 호출
    Copy
    afx_msg HBRUSH OnCtlColor(
       CDC* pDC,
       CWnd* pWnd,
       UINT nCtlColor 
    );
    

    Parameters


    pDC
    Contains a pointer to the display context for the child window. May be temporary.
    pWnd
    Contains a pointer to the control asking for the color. May be temporary.
    nCtlColor
    Contains one of the following values, specifying the type of control:
  • CTLCOLOR_BTN   Button control
  • CTLCOLOR_DLG   Dialog box
  • CTLCOLOR_EDIT   Edit control
  • CTLCOLOR_LISTBOX   List-box control
  • CTLCOLOR_MSGBOX   Message box
  • CTLCOLOR_SCROLLBAR   Scroll-bar control
  • CTLCOLOR_STATIC   Static control

  • OnCtlColor must return a handle to the brush that is to be used for painting the control background.

    좋은 웹페이지 즐겨찾기