WindowClass Struct Reference

WindowClass is a neat wrapper for RegisterClassEx(). More...

#include <window.h>

Inheritance diagram for WindowClass:

Inheritance graph
[legend]
Collaboration diagram for WindowClass:

Collaboration graph
[legend]

Public Member Functions

 WindowClass (LPCTSTR classname, UINT style=0, WNDPROC wndproc=Window::WindowWndProc)
ATOM Register ()
 operator ATOM ()
 operator LPCTSTR ()

Protected Attributes

ATOM _atomClass

Detailed Description

WindowClass is a neat wrapper for RegisterClassEx().

Just construct a WindowClass object, override the attributes you want to change, then call Register() or simply request the ATOM value to register the window class. You don't have to worry calling Register() more than once. It checks if, the class has already been registered.

Definition at line 218 of file window.h.


Constructor & Destructor Documentation

WindowClass::WindowClass ( LPCTSTR  classname,
UINT  style = 0,
WNDPROC  wndproc = Window::WindowWndProc 
)


Member Function Documentation

ATOM WindowClass::Register (  )  [inline]

Definition at line 222 of file window.h.

References _atomClass.

Referenced by operator ATOM(), and operator LPCTSTR().

00223     {
00224         if (!_atomClass)
00225             _atomClass = RegisterClassEx(this);
00226 
00227         return _atomClass;
00228     }

Here is the caller graph for this function:

WindowClass::operator ATOM (  )  [inline]

Definition at line 230 of file window.h.

References Register().

00230 {return Register();}

Here is the call graph for this function:

WindowClass::operator LPCTSTR (  )  [inline]

Definition at line 233 of file window.h.

References Register().

00233 {return (LPCTSTR)(int)Register();}

Here is the call graph for this function:


Field Documentation

ATOM WindowClass::_atomClass [protected]

Definition at line 236 of file window.h.

Referenced by Register().


The documentation for this struct was generated from the following file:
IBrowser Source Code Documentation
generated on 18.09.2008 by doxygen

Homepage