Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

UIThread.h File Reference

User interface support (abandoned). More...

#include <OW32/OW32Libs.h>
#include <OW32/windows.h>
#include <OW32/Thread.h>
#include <tchar.h>

Go to the source code of this file.

Namespaces

namespace  OW32

Classes

class  OW32::CWndClass
class  OW32::CWndClassEx
class  OW32::CWindow
class  OW32::CMDIChildWindow
class  OW32::CMDIFrameWindow
class  OW32::CUIThread

Defines

#define BEGIN_MESSAGE_MAP(BaseClass)
#define MESSAGE_HANDLER(msg, func)
#define MESSAGE_HANDLER0(msg, func)
#define MESSAGE_HANDLER1(msg, func)
#define MESSAGE_HANDLER2(msg, func)
#define MESSAGE_HANDLER3(msg, func)
#define MESSAGE_RANGE_HANDLER(msgFirst, msgLast, func)
#define COMMAND_ID_HANDLER0(id, func)
#define COMMAND_CODE_ID_HANDLER0(code, id, func)
#define COMMAND_CODE_HANDLER(code, func)
#define COMMAND_ID_HANDLER(id, func)
#define COMMAND_HANDLER(func)
#define ON_SIZE()
#define ON_CREATE()
#define ON_LBUTTONUP()
#define ON_LBUTTONDOWN()
#define ON_RBUTTONUP()
#define ON_RBUTTONDOWN()
#define ON_MOUSEMOVE()
#define ON_PAINT()
#define ON_DESTROY()
#define END_MESSAGE_MAP()
#define NOTIFY_HANDLER_CODE_ID0(ncode, id, func)
#define DECLARE_EMPTY_MESSAGE_MAP()

Variables

DWORD g_TLSCreateWindowData
OW32_LIB_EXPORT CWindow


Detailed Description

User interface support (abandoned).


Define Documentation

#define BEGIN_MESSAGE_MAP BaseClass   ) 
 

Value:

virtual LRESULT OnMessage(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) \
    { \
        typedef BaseClass _BaseClass; \
        uMsg; wParam; lParam; bHandled = TRUE; \

#define COMMAND_CODE_HANDLER code,
func   ) 
 

Value:

if (uMsg == WM_COMMAND && HIWORD(wParam) == code) { \
        LRESULT res = (func)(id, HIWORD(wParam), (HWND)lParam, bHandled); \
        if (bHandled) return res; \
    }

#define COMMAND_CODE_ID_HANDLER0 code,
id,
func   ) 
 

Value:

if (uMsg == WM_COMMAND && HIWORD(wParam) == code && LOWORD(wParam) == id) { \
        (func)(); \
        return TRUE; \
    }

#define COMMAND_HANDLER func   ) 
 

Value:

if (uMsg == WM_COMMAND) { \
        LRESULT res = (func)((int)LOWORD(wParam), (HWND)lParam, (UINT)HIWORD(wParam)); \
        return 0L; \
    }

#define COMMAND_ID_HANDLER id,
func   ) 
 

Value:

if (uMsg == WM_COMMAND && LOWORD(wParam) == id) { \
        LRESULT res = (func)(LOWORD(wParam), HIWORD(wParam), (HWND)lParam, bHandled); \
        if (bHandled) return res; \
    }

#define COMMAND_ID_HANDLER0 id,
func   ) 
 

Value:

if (uMsg == WM_COMMAND && LOWORD(wParam) == id) { \
        (func)(); \
        return TRUE; \
    }

 
#define DECLARE_EMPTY_MESSAGE_MAP  ) 
 

Value:

virtual LRESULT OnMessage(UINT, WPARAM, LPARAM, BOOL& bHandled) { \
        bHandled = FALSE; \
        return 0; \
    }

 
#define END_MESSAGE_MAP  ) 
 

Value:

LRESULT res = _BaseClass::OnMessage(uMsg, wParam, lParam, bHandled); \
        if (bHandled) return res; \
        bHandled = FALSE; \
        return 0; \
    }

#define MESSAGE_HANDLER msg,
func   ) 
 

Value:

if (uMsg == msg) { \
        return (func)(wParam, lParam); \
    }

#define MESSAGE_HANDLER0 msg,
func   ) 
 

Value:

if (uMsg == msg) { \
        (func)(); \
        return 0L; \
    }

#define MESSAGE_HANDLER1 msg,
func   ) 
 

Value:

if (uMsg == msg) { \
        (func)(wParam); \
        return 0L; \
    }

#define MESSAGE_HANDLER2 msg,
func   ) 
 

Value:

if (uMsg == msg) { \
        (func)(lParam); \
        return 0L; \
    }

#define MESSAGE_HANDLER3 msg,
func   ) 
 

Value:

if (uMsg == msg) { \
        return (func)(msg, wParam, lParam); \
    }

#define MESSAGE_RANGE_HANDLER msgFirst,
msgLast,
func   ) 
 

Value:

if (uMsg >= msgFirst && uMsg <= msgLast) {  \
        LRESULT res = (func)(uMsg, wParam, lParam, bHandled); \
        if (bHandled) return res; \
    }

#define NOTIFY_HANDLER_CODE_ID0 ncode,
id,
func   ) 
 

Value:

if (uMsg == WM_NOTIFY && (int)wParam == id && ((LPNMHDR)lParam)->code == ncode) { \
        (func)(); \
        return 0; \
    }

 
#define ON_CREATE  ) 
 

Value:

if (uMsg == WM_CREATE) { \
        return OnCreate((LPCREATESTRUCT)lParam) ? 0L : -1L; \
    }

 
#define ON_DESTROY  ) 
 

Value:

if (uMsg == WM_DESTROY) { \
        OnDestroy(); \
        return 0L; \
    }

 
#define ON_LBUTTONDOWN  ) 
 

Value:

if (uMsg == WM_LBUTTONDOWN) { \
        OnLButtonDown(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), (UINT)wParam); \
        return 0L; \
    }

 
#define ON_LBUTTONUP  ) 
 

Value:

if (uMsg == WM_LBUTTONUP) { \
        OnLButtonUp(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), (UINT)wParam); \
        return 0L; \
    }

 
#define ON_MOUSEMOVE  ) 
 

Value:

if (uMsg == WM_MOUSEMOVE) { \
        OnMouseMove(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), (UINT)wParam); \
        return 0L; \
    }

 
#define ON_PAINT  ) 
 

Value:

if (uMsg == WM_PAINT) { \
        OnPaint(); \
        return 0L; \
    }

 
#define ON_RBUTTONDOWN  ) 
 

Value:

if (uMsg == WM_LBUTTONDOWN) { \
        OnLButtonDown(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), (UINT)wParam); \
        return 0L; \
    }

 
#define ON_RBUTTONUP  ) 
 

Value:

if (uMsg == WM_LBUTTONUP) { \
        OnLButtonUp(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam), (UINT)wParam); \
        return 0L; \
    }

 
#define ON_SIZE  ) 
 

Value:

if (uMsg == WM_SIZE) { \
        OnSize((int)LOWORD(lParam), (int)HIWORD(lParam), (UINT)wParam); \
        return 0L; \
    }


Generated on Sun Jun 5 01:29:19 2005 for OW32 by  doxygen 1.3.9.1