ReactOS 0.4.15-dev-8116-gf69e256
atlwin.h File Reference

Go to the source code of this file.

Classes

class  ATL::CWinTraits< t_dwStyle, t_dwExStyle >
 
class  ATL::CWinTraitsOR< t_dwStyle, t_dwExStyle, TWinTraits >
 
class  ATL::_U_MENUorID
 
class  ATL::_U_RECT
 
struct  ATL::_ATL_MSG
 
class  ATL::CWndProcThunk
 
class  ATL::CMessageMap
 
class  ATL::CWindow
 
struct  ATL::CWindow::_IDHWNDPAIR
 
class  ATL::CWindowImplRoot< TBase >
 
class  ATL::CDialogImplBaseT< TBase >
 
class  ATL::CDialogImpl< T, TBase >
 
class  ATL::CWindowImplBaseT< TBase, TWinTraits >
 
class  ATL::CWindowImpl< T, TBase, TWinTraits >
 
class  ATL::CContainedWindowT< TBase, TWinTraits >
 
struct  ATL::_ATL_WNDCLASSINFOW
 

Namespaces

namespace  ATL
 

Macros

#define GCCU(x)   (x)
 
#define Unused(x)   (x);
 
#define GET_X_LPARAM(lp)   ((int)(short)LOWORD(lp))
 
#define GET_Y_LPARAM(lp)   ((int)(short)HIWORD(lp))
 
#define BEGIN_MSG_MAP(theClass)
 
#define ALT_MSG_MAP(map)
 
#define END_MSG_MAP()
 
#define MESSAGE_HANDLER(msg, func)
 
#define MESSAGE_RANGE_HANDLER(msgFirst, msgLast, func)
 
#define COMMAND_HANDLER(id, code, func)
 
#define COMMAND_ID_HANDLER(id, func)
 
#define COMMAND_CODE_HANDLER(code, func)
 
#define COMMAND_RANGE_HANDLER(idFirst, idLast, func)
 
#define NOTIFY_CODE_HANDLER(cd, func)
 
#define NOTIFY_HANDLER(id, cd, func)
 
#define CHAIN_MSG_MAP(theChainClass)
 
#define DECLARE_WND_CLASS_EX(WndClassName, style, bkgnd)
 

Typedefs

typedef _ATL_WNDCLASSINFOW ATL::CWndClassInfo
 
typedef CWinTraits< WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, 0 > ATL::CControlWinTraits
 
typedef CWinTraits< WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, WS_EX_APPWINDOW|WS_EX_WINDOWEDGEATL::CFrameWinTraits
 
typedef CWinTraits< WS_OVERLAPPEDWINDOW|WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, WS_EX_MDICHILDATL::CMDIChildWinTraits
 
typedef CContainedWindowT< CWindow > ATL::CContainedWindow
 

Functions

 ATL::__declspec (selectany) CAtlModule *_pAtlModule = NULL
 

Macro Definition Documentation

◆ ALT_MSG_MAP

#define ALT_MSG_MAP (   map)
Value:
break; \
case map:
Definition: _map.h:48

Definition at line 1913 of file atlwin.h.

◆ BEGIN_MSG_MAP

#define BEGIN_MSG_MAP (   theClass)
Value:
public: \
BOOL ProcessWindowMessage(HWND GCCU(hWnd), UINT GCCU(uMsg), WPARAM GCCU(wParam), LPARAM GCCU(lParam), LRESULT &GCCU(lResult), DWORD dwMsgMapID = 0) \
{ \
BOOL GCCU(bHandled) = TRUE; \
Unused(hWnd); \
Unused(uMsg); \
Unused(wParam); \
Unused(lParam); \
Unused(lResult); \
Unused(bHandled); \
switch(dwMsgMapID) \
{ \
case 0:
HWND hWnd
Definition: settings.c:17
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
#define TRUE
Definition: types.h:120
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
#define GCCU(x)
Definition: atlwin.h:27
unsigned int UINT
Definition: ndis.h:50
LONG_PTR LPARAM
Definition: windef.h:208
LONG_PTR LRESULT
Definition: windef.h:209
UINT_PTR WPARAM
Definition: windef.h:207

Definition at line 1898 of file atlwin.h.

◆ CHAIN_MSG_MAP

#define CHAIN_MSG_MAP (   theChainClass)
Value:
{ \
if (theChainClass::ProcessWindowMessage(hWnd, uMsg, wParam, lParam, lResult)) \
return TRUE; \
}

Definition at line 1998 of file atlwin.h.

◆ COMMAND_CODE_HANDLER

#define COMMAND_CODE_HANDLER (   code,
  func 
)
Value:
if (uMsg == WM_COMMAND && code == HIWORD(wParam)) \
{ \
bHandled = TRUE; \
lResult = func(HIWORD(wParam), LOWORD(wParam), (HWND)lParam, bHandled); \
if (bHandled) \
return TRUE; \
}
GLenum func
Definition: glext.h:6028
#define LOWORD(l)
Definition: pedump.c:82
Definition: inflate.c:139
#define HIWORD(l)
Definition: typedefs.h:247
#define WM_COMMAND
Definition: winuser.h:1740

Definition at line 1962 of file atlwin.h.

◆ COMMAND_HANDLER

#define COMMAND_HANDLER (   id,
  code,
  func 
)
Value:
if (uMsg == WM_COMMAND && id == LOWORD(wParam) && code == HIWORD(wParam)) \
{ \
bHandled = TRUE; \
lResult = func(HIWORD(wParam), LOWORD(wParam), (HWND)lParam, bHandled); \
if (bHandled) \
return TRUE; \
}

Definition at line 1944 of file atlwin.h.

◆ COMMAND_ID_HANDLER

#define COMMAND_ID_HANDLER (   id,
  func 
)
Value:
if (uMsg == WM_COMMAND && id == LOWORD(wParam)) \
{ \
bHandled = TRUE; \
lResult = func(HIWORD(wParam), LOWORD(wParam), (HWND)lParam, bHandled); \
if (bHandled) \
return TRUE; \
}

Definition at line 1953 of file atlwin.h.

◆ COMMAND_RANGE_HANDLER

#define COMMAND_RANGE_HANDLER (   idFirst,
  idLast,
  func 
)
Value:
if (uMsg == WM_COMMAND && LOWORD(wParam) >= idFirst && LOWORD(wParam) <= idLast) \
{ \
bHandled = TRUE; \
lResult = func(HIWORD(wParam), LOWORD(wParam), (HWND)lParam, bHandled); \
if (bHandled) \
return TRUE; \
}

Definition at line 1971 of file atlwin.h.

◆ DECLARE_WND_CLASS_EX

#define DECLARE_WND_CLASS_EX (   WndClassName,
  style,
  bkgnd 
)
Value:
static ATL::CWndClassInfo& GetWndClassInfo() \
{ \
static ATL::CWndClassInfo wc = \
{ \
{ sizeof(WNDCLASSEX), style, StartWindowProc, \
0, 0, NULL, NULL, NULL, (HBRUSH)(bkgnd + 1), NULL, WndClassName, NULL }, \
NULL, NULL, IDC_ARROW, TRUE, 0, _T("") \
}; \
return wc; \
}
Arabic default style
Definition: afstyles.h:94
#define NULL
Definition: types.h:112
const char * WndClassName
Definition: alphablend.c:13
#define _T(x)
Definition: vfdio.h:22
#define IDC_ARROW
Definition: winuser.h:687
WNDCLASSEXA WNDCLASSEX
Definition: winuser.h:5719

Definition at line 2004 of file atlwin.h.

◆ END_MSG_MAP

#define END_MSG_MAP ( )
Value:
break; \
default: \
ATLASSERT(FALSE); \
break; \
} \
return FALSE; \
}
#define FALSE
Definition: types.h:117

Definition at line 1917 of file atlwin.h.

◆ GCCU

#define GCCU (   x)    (x)

Definition at line 27 of file atlwin.h.

◆ GET_X_LPARAM

#define GET_X_LPARAM (   lp)    ((int)(short)LOWORD(lp))

Definition at line 62 of file atlwin.h.

◆ GET_Y_LPARAM

#define GET_Y_LPARAM (   lp)    ((int)(short)HIWORD(lp))

Definition at line 65 of file atlwin.h.

◆ MESSAGE_HANDLER

#define MESSAGE_HANDLER (   msg,
  func 
)
Value:
if (uMsg == msg) \
{ \
bHandled = TRUE; \
lResult = func(uMsg, wParam, lParam, bHandled); \
if (bHandled) \
return TRUE; \
}
#define msg(x)
Definition: auth_time.c:54

Definition at line 1926 of file atlwin.h.

◆ MESSAGE_RANGE_HANDLER

#define MESSAGE_RANGE_HANDLER (   msgFirst,
  msgLast,
  func 
)
Value:
if (uMsg >= msgFirst && uMsg <= msgLast) \
{ \
bHandled = TRUE; \
lResult = func(uMsg, wParam, lParam, bHandled); \
if (bHandled) \
return TRUE; \
}

Definition at line 1935 of file atlwin.h.

◆ NOTIFY_CODE_HANDLER

#define NOTIFY_CODE_HANDLER (   cd,
  func 
)
Value:
if (uMsg == WM_NOTIFY && cd == ((LPNMHDR)lParam)->code) \
{ \
bHandled = TRUE; \
lResult = func((int)wParam, (LPNMHDR)lParam, bHandled); \
if (bHandled) \
return TRUE; \
}
InitDirComponents & cd
#define WM_NOTIFY
Definition: richedit.h:61

Definition at line 1980 of file atlwin.h.

◆ NOTIFY_HANDLER

#define NOTIFY_HANDLER (   id,
  cd,
  func 
)
Value:
if (uMsg == WM_NOTIFY && id == ((LPNMHDR)lParam)->idFrom && cd == ((LPNMHDR)lParam)->code) \
{ \
bHandled = TRUE; \
lResult = func((int)wParam, (LPNMHDR)lParam, bHandled); \
if (bHandled) \
return TRUE; \
}

Definition at line 1989 of file atlwin.h.

◆ Unused

#define Unused (   x)    (x);

Definition at line 28 of file atlwin.h.