Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CWnd::OnNcCreate
◄CWnd►                                        ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  afx_msg BOOL OnNcCreate( LPCREATESTRUCT  lpCreateStruct  );
 
  Parameter        Description
 
  <lpCreateStruct> Points to the CREATESTRUCT data structure for CWnd.
 
  Remarks
 
  Called prior to the ◄WM_CREATE► message when the CWnd is first created.
 
  By default, scroll bars are initialized (the scroll-bar position and
  range are set) and the CWnd text is set. Memory used internally to
  create and maintain the window is allocated.
 
  This message-handler member function calls the ◄Default► member
  function. Override this member function in your derived class to handle
  the ◄WM_NCCREATE► message.
 
  Return Value
 
  TRUE if the nonclient area is created. It is FALSE if an error occurs;
  the Create function will return NULL in this case.
 
  See Also
 
  ◄CWnd::CreateEx►, ◄WM_NCCREATE►, ◄CWnd::Default►
 
 
                                     -♦-