#include <window.h>
Public Member Functions | |
WindowClass (LPCTSTR classname, UINT style=0, WNDPROC wndproc=Window::WindowWndProc) | |
ATOM | Register () |
operator ATOM () | |
operator LPCTSTR () | |
Protected Attributes | |
ATOM | _atomClass |
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.
WindowClass::WindowClass | ( | LPCTSTR | classname, | |
UINT | style = 0 , |
|||
WNDPROC | wndproc = Window::WindowWndProc | |||
) |
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 }
WindowClass::operator ATOM | ( | ) | [inline] |
Definition at line 230 of file window.h.
References Register().
00230 {return Register();}
WindowClass::operator LPCTSTR | ( | ) | [inline] |
Definition at line 233 of file window.h.
References Register().
00233 {return (LPCTSTR)(int)Register();}
ATOM WindowClass::_atomClass [protected] |
IBrowser Source Code Documentation
generated on 18.09.2008 by |