omgui::win32::CreationHook Class Reference

#include <omgui/win32/win.h>

List of all members.


Detailed Description

This class wraps hooking the WM_CREATE message and is used for omgui native widget creation. The hook procedure is responsible for associating a Windows HWND with a omgui::win32::Widget pointer as soon as is physically possible.

Warning:
Implementation of this class is not thread safe.

Public Member Functions

 CreationHook (Widget *w)
 ~CreationHook ()

Static Public Member Functions

static LRESULT CALLBACK hook_proc (int code, WPARAM w_param, LPARAM l_param)

Constructor & Destructor Documentation

omgui::win32::CreationHook::CreationHook ( Widget w  ) 

Installs the hook.

Parameters:
w The widget to be associated with the next HWND that is created

omgui::win32::CreationHook::~CreationHook (  ) 


Member Function Documentation

LRESULT CALLBACK omgui::win32::CreationHook::hook_proc ( int  code,
WPARAM  w_param,
LPARAM  l_param 
) [static]


doxygen SourceForge.net Logo