Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
AfxRegisterWndClass
                                              Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  const char* AfxRegisterWndClass( UINT nClassStyle, HCURSOR hCursor = 0,
                                   HBRUSH hbrBackground = 0,
                                   HICON hIcon = 0 );
 
  Parameter       Description
 
  <nClassStyle>   The Windows class style or combination of styles for the
                  window class. This parameter can be any valid window
                  style or control style, or a combination of styles
                  created by using the bitwise-OR (|) operator.
 
  <hCursor>       A handle to the cursor resource to be installed in each
                  window created from the window class.
 
  <hbrBackground> A handle to the brush resource to be installed in each
                  window created from the window class.
 
  <hIcon>         A handle to the icon resource to be installed in each
                  window created from the window class.
 
  Remarks
 
  Although the Microsoft Foundation Class Library automatically registers
  several standard window classes for you, you can call this function to
  register your own window classes. You may also use the function to
  change the application's icon, although a simpler way is discussed in
  the <Class Libraries User's Guide>.
 
  Return Value
 
  A null-terminated string containing the class name. You can pass this
  class name to the CWnd::CreateEx member function to create a window.
  The name is generated by the Microsoft Foundation Class Library.
 
  NOTE: The return value is stored in a static buffer. To save this
        string, assign it to a CString variable.
 
 
                                     -♦-