ReactOS 0.4.16-dev-336-gb667d82
windowsx.h File Reference

Go to the source code of this file.

Macros

#define SNDMSG   SendMessage
 
#define WM_CTLCOLOR   25
 
#define Button_Enable(hwndCtl, fEnable)   EnableWindow((hwndCtl),(fEnable))
 
#define Button_GetCheck(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),BM_GETCHECK,0,0))
 
#define Button_GetState(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),BM_GETSTATE,0,0))
 
#define Button_GetText(hwndCtl, lpch, cchMax)   GetWindowText((hwndCtl),(lpch),(cchMax))
 
#define Button_GetTextLength(hwndCtl)   GetWindowTextLength(hwndCtl)
 
#define Button_SetCheck(hwndCtl, check)   ((void)SNDMSG((hwndCtl),BM_SETCHECK,(WPARAM)(int)(check),0))
 
#define Button_SetState(hwndCtl, state)   ((UINT)(DWORD)SNDMSG((hwndCtl),BM_SETSTATE,(WPARAM)(int)(state),0))
 
#define Button_SetStyle(hwndCtl, style, fRedraw)   ((void)SNDMSG((hwndCtl),BM_SETSTYLE,(WPARAM)LOWORD(style),MAKELPARAM(((fRedraw) ? TRUE : FALSE),0)))
 
#define Button_SetText(hwndCtl, lpsz)   SetWindowText((hwndCtl),(lpsz))
 
#define CheckDefDlgRecursion(pfRecursion)   if (*(pfRecursion)) {*(pfRecursion) = FALSE; return FALSE; }
 
#define ComboBox_AddItemData(hwndCtl, data)   ((int)(DWORD)SNDMSG((hwndCtl),CB_ADDSTRING,0,(LPARAM)(data)))
 
#define ComboBox_AddString(hwndCtl, lpsz)   ((int)(DWORD)SNDMSG((hwndCtl),CB_ADDSTRING,0,(LPARAM)(LPCTSTR)(lpsz)))
 
#define ComboBox_DeleteString(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),CB_DELETESTRING,(WPARAM)(int)(index),0))
 
#define ComboBox_Dir(hwndCtl, attrs, lpszFileSpec)   ((int)(DWORD)SNDMSG((hwndCtl),CB_DIR,(WPARAM)(UINT)(attrs),(LPARAM)(LPCTSTR)(lpszFileSpec)))
 
#define ComboBox_Enable(hwndCtl, fEnable)   EnableWindow((hwndCtl),(fEnable))
 
#define ComboBox_FindItemData(hwndCtl, indexStart, data)   ((int)(DWORD)SNDMSG((hwndCtl),CB_FINDSTRING,(WPARAM)(int)(indexStart),(LPARAM)(data)))
 
#define ComboBox_FindString(hwndCtl, indexStart, lpszFind)   ((int)(DWORD)SNDMSG((hwndCtl),CB_FINDSTRING,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszFind)))
 
#define ComboBox_FindStringExact(hwndCtl, indexStart, lpszFind)   ((int)(DWORD)SNDMSG((hwndCtl),CB_FINDSTRINGEXACT,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszFind)))
 
#define ComboBox_GetCount(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),CB_GETCOUNT,0,0))
 
#define ComboBox_GetCurSel(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),CB_GETCURSEL,0,0))
 
#define ComboBox_GetDroppedControlRect(hwndCtl, lprc)   ((void)SNDMSG((hwndCtl),CB_GETDROPPEDCONTROLRECT,0,(LPARAM)(RECT*)(lprc)))
 
#define ComboBox_GetDroppedState(hwndCtl)   ((BOOL)(DWORD)SNDMSG((hwndCtl),CB_GETDROPPEDSTATE,0,0))
 
#define ComboBox_GetEditSel(hwndCtl)   ((DWORD)SNDMSG((hwndCtl),CB_GETEDITSEL,0,0))
 
#define ComboBox_GetExtendedUI(hwndCtl)   ((UINT)(DWORD)SNDMSG((hwndCtl),CB_GETEXTENDEDUI,0,0))
 
#define ComboBox_GetItemData(hwndCtl, index)   ((LRESULT)(UINT_PTR)SNDMSG((hwndCtl),CB_GETITEMDATA,(WPARAM)(int)(index),0))
 
#define ComboBox_GetItemHeight(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),CB_GETITEMHEIGHT,0,0))
 
#define ComboBox_GetLBText(hwndCtl, index, lpszBuffer)   ((int)(DWORD)SNDMSG((hwndCtl),CB_GETLBTEXT,(WPARAM)(int)(index),(LPARAM)(LPCTSTR)(lpszBuffer)))
 
#define ComboBox_GetLBTextLen(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),CB_GETLBTEXTLEN,(WPARAM)(int)(index),0))
 
#define ComboBox_GetText(hwndCtl, lpch, cchMax)   GetWindowText((hwndCtl),(lpch),(cchMax))
 
#define ComboBox_GetTextLength(hwndCtl)   GetWindowTextLength(hwndCtl)
 
#define ComboBox_InsertItemData(hwndCtl, index, data)   ((int)(DWORD)SNDMSG((hwndCtl),CB_INSERTSTRING,(WPARAM)(int)(index),(LPARAM)(data)))
 
#define ComboBox_InsertString(hwndCtl, index, lpsz)   ((int)(DWORD)SNDMSG((hwndCtl),CB_INSERTSTRING,(WPARAM)(int)(index),(LPARAM)(LPCTSTR)(lpsz)))
 
#define ComboBox_LimitText(hwndCtl, cchLimit)   ((int)(DWORD)SNDMSG((hwndCtl),CB_LIMITTEXT,(WPARAM)(int)(cchLimit),0))
 
#define ComboBox_ResetContent(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),CB_RESETCONTENT,0,0))
 
#define ComboBox_SelectItemData(hwndCtl, indexStart, data)   ((int)(DWORD)SNDMSG((hwndCtl),CB_SELECTSTRING,(WPARAM)(int)(indexStart),(LPARAM)(data)))
 
#define ComboBox_SelectString(hwndCtl, indexStart, lpszSelect)   ((int)(DWORD)SNDMSG((hwndCtl),CB_SELECTSTRING,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszSelect)))
 
#define ComboBox_SetCurSel(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),CB_SETCURSEL,(WPARAM)(int)(index),0))
 
#define ComboBox_SetEditSel(hwndCtl, ichStart, ichEnd)   ((int)(DWORD)SNDMSG((hwndCtl),CB_SETEDITSEL,0,MAKELPARAM((ichStart),(ichEnd))))
 
#define ComboBox_SetExtendedUI(hwndCtl, flags)   ((int)(DWORD)SNDMSG((hwndCtl),CB_SETEXTENDEDUI,(WPARAM)(UINT)(flags),0))
 
#define ComboBox_SetItemData(hwndCtl, index, data)   ((int)(DWORD)SNDMSG((hwndCtl),CB_SETITEMDATA,(WPARAM)(int)(index),(LPARAM)(data)))
 
#define ComboBox_SetItemHeight(hwndCtl, index, cyItem)   ((int)(DWORD)SNDMSG((hwndCtl),CB_SETITEMHEIGHT,(WPARAM)(int)(index),(LPARAM)(int)cyItem))
 
#define ComboBox_SetText(hwndCtl, lpsz)   SetWindowText((hwndCtl),(lpsz))
 
#define ComboBox_ShowDropdown(hwndCtl, fShow)   ((BOOL)(DWORD)SNDMSG((hwndCtl),CB_SHOWDROPDOWN,(WPARAM)(BOOL)(fShow),0))
 
#define CopyRgn(hrgnDst, hrgnSrc)   CombineRgn(hrgnDst,hrgnSrc,0,RGN_COPY)
 
#define DECLARE_HANDLE32   DECLARE_HANDLE
 
#define DefDlgProcEx(hwnd, msg, wParam, lParam, pfRecursion)   (*(pfRecursion) = TRUE,DefDlgProc(hwnd,msg,wParam,lParam))
 
#define DeleteBitmap(hbm)   DeleteObject((HGDIOBJ)(HBITMAP)(hbm))
 
#define DeleteBrush(hbr)   DeleteObject((HGDIOBJ)(HBRUSH)(hbr))
 
#define DeleteFont(hfont)   DeleteObject((HGDIOBJ)(HFONT)(hfont))
 
#define DeletePalette(hpal)   DeleteObject((HGDIOBJ)(HPALETTE)(hpal))
 
#define DeletePen(hpen)   DeleteObject((HGDIOBJ)(HPEN)(hpen))
 
#define DeleteRgn(hrgn)   DeleteObject((HGDIOBJ)(HRGN)(hrgn))
 
#define Edit_CanUndo(hwndCtl)   ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_CANUNDO,0,0))
 
#define Edit_EmptyUndoBuffer(hwndCtl)   ((void)SNDMSG((hwndCtl),EM_EMPTYUNDOBUFFER,0,0))
 
#define Edit_Enable(hwndCtl, fEnable)   EnableWindow((hwndCtl),(fEnable))
 
#define Edit_FmtLines(hwndCtl, fAddEOL)   ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_FMTLINES,(WPARAM)(BOOL)(fAddEOL),0))
 
#define Edit_GetFirstVisibleLine(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),EM_GETFIRSTVISIBLELINE,0,0))
 
#define Edit_GetHandle(hwndCtl)   ((HLOCAL)(UINT_PTR)SNDMSG((hwndCtl),EM_GETHANDLE,0,0))
 
#define Edit_GetLine(hwndCtl, line, lpch, cchMax)   ((*((int*)(lpch)) = (cchMax)),((int)(DWORD)SNDMSG((hwndCtl),EM_GETLINE,(WPARAM)(int)(line),(LPARAM)(LPTSTR)(lpch))))
 
#define Edit_GetLineCount(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),EM_GETLINECOUNT,0,0))
 
#define Edit_GetModify(hwndCtl)   ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_GETMODIFY,0,0))
 
#define Edit_GetPasswordChar(hwndCtl)   ((TCHAR)(DWORD)SNDMSG((hwndCtl),EM_GETPASSWORDCHAR,0,0))
 
#define Edit_GetRect(hwndCtl, lprc)   ((void)SNDMSG((hwndCtl),EM_GETRECT,0,(LPARAM)(RECT*)(lprc)))
 
#define Edit_GetSel(hwndCtl)   ((DWORD)SNDMSG((hwndCtl),EM_GETSEL,0,0))
 
#define Edit_GetText(hwndCtl, lpch, cchMax)   GetWindowText((hwndCtl),(lpch),(cchMax))
 
#define Edit_GetTextLength(hwndCtl)   GetWindowTextLength(hwndCtl)
 
#define Edit_GetWordBreakProc(hwndCtl)   ((EDITWORDBREAKPROC)SNDMSG((hwndCtl),EM_GETWORDBREAKPROC,0,0))
 
#define Edit_LimitText(hwndCtl, cchMax)   ((void)SNDMSG((hwndCtl),EM_LIMITTEXT,(WPARAM)(cchMax),0))
 
#define Edit_LineFromChar(hwndCtl, ich)   ((int)(DWORD)SNDMSG((hwndCtl),EM_LINEFROMCHAR,(WPARAM)(int)(ich),0))
 
#define Edit_LineIndex(hwndCtl, line)   ((int)(DWORD)SNDMSG((hwndCtl),EM_LINEINDEX,(WPARAM)(int)(line),0))
 
#define Edit_LineLength(hwndCtl, line)   ((int)(DWORD)SNDMSG((hwndCtl),EM_LINELENGTH,(WPARAM)(int)(line),0))
 
#define Edit_ReplaceSel(hwndCtl, lpszReplace)   ((void)SNDMSG((hwndCtl),EM_REPLACESEL,0,(LPARAM)(LPCTSTR)(lpszReplace)))
 
#define Edit_Scroll(hwndCtl, dv, dh)   ((void)SNDMSG((hwndCtl),EM_LINESCROLL,(WPARAM)(dh),(LPARAM)(dv)))
 
#define Edit_ScrollCaret(hwndCtl)   ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_SCROLLCARET,0,0))
 
#define Edit_SetHandle(hwndCtl, h)   ((void)SNDMSG((hwndCtl),EM_SETHANDLE,(WPARAM)(UINT_PTR)(HLOCAL)(h),0))
 
#define Edit_SetModify(hwndCtl, fModified)   ((void)SNDMSG((hwndCtl),EM_SETMODIFY,(WPARAM)(UINT)(fModified),0))
 
#define Edit_SetPasswordChar(hwndCtl, ch)   ((void)SNDMSG((hwndCtl),EM_SETPASSWORDCHAR,(WPARAM)(UINT)(ch),0))
 
#define Edit_SetReadOnly(hwndCtl, fReadOnly)   ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_SETREADONLY,(WPARAM)(BOOL)(fReadOnly),0))
 
#define Edit_SetRect(hwndCtl, lprc)   ((void)SNDMSG((hwndCtl),EM_SETRECT,0,(LPARAM)(const RECT*)(lprc)))
 
#define Edit_SetRectNoPaint(hwndCtl, lprc)   ((void)SNDMSG((hwndCtl),EM_SETRECTNP,0,(LPARAM)(const RECT*)(lprc)))
 
#define Edit_SetSel(hwndCtl, ichStart, ichEnd)   ((void)SNDMSG((hwndCtl),EM_SETSEL,(ichStart),(ichEnd)))
 
#define Edit_SetTabStops(hwndCtl, cTabs, lpTabs)   ((void)SNDMSG((hwndCtl),EM_SETTABSTOPS,(WPARAM)(int)(cTabs),(LPARAM)(const int*)(lpTabs)))
 
#define Edit_SetText(hwndCtl, lpsz)   SetWindowText((hwndCtl),(lpsz))
 
#define Edit_SetWordBreakProc(hwndCtl, lpfnWordBreak)   ((void)SNDMSG((hwndCtl),EM_SETWORDBREAKPROC,0,(LPARAM)(EDITWORDBREAKPROC)(lpfnWordBreak)))
 
#define Edit_Undo(hwndCtl)   ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_UNDO,0,0))
 
#define FORWARD_WM_ACTIVATE(hwnd, state, hwndActDeact, fMinimized, fn)   (void)(fn)((hwnd),WM_ACTIVATE,MAKEWPARAM((state),(fMinimized)),(LPARAM)(HWND)(hwndActDeact))
 
#define FORWARD_WM_ACTIVATEAPP(hwnd, fActivate, dwThreadId, fn)   (void)(fn)((hwnd),WM_ACTIVATEAPP,(WPARAM)(BOOL)(fActivate),(LPARAM)(dwThreadId))
 
#define FORWARD_WM_ASKCBFORMATNAME(hwnd, cchMax, rgchName, fn)   (void)(fn)((hwnd),WM_ASKCBFORMATNAME,(WPARAM)(int)(cchMax),(LPARAM)(rgchName))
 
#define FORWARD_WM_CANCELMODE(hwnd, fn)   (void)(fn)((hwnd),WM_CANCELMODE,0,0)
 
#define FORWARD_WM_CHANGECBCHAIN(hwnd, hwndRemove, hwndNext, fn)   (void)(fn)((hwnd),WM_CHANGECBCHAIN,(WPARAM)(HWND)(hwndRemove),(LPARAM)(HWND)(hwndNext))
 
#define FORWARD_WM_CHAR(hwnd, ch, cRepeat, fn)   (void)(fn)((hwnd),WM_CHAR,(WPARAM)(TCHAR)(ch),MAKELPARAM((cRepeat),0))
 
#define FORWARD_WM_CHARTOITEM(hwnd, ch, hwndListBox, iCaret, fn)   (int)(DWORD)(fn)((hwnd),WM_CHARTOITEM,MAKEWPARAM((UINT)(iCaret),(UINT)(ch)),(LPARAM)(hwndListBox))
 
#define FORWARD_WM_CHILDACTIVATE(hwnd, fn)   (void)(fn)((hwnd),WM_CHILDACTIVATE,0,0)
 
#define FORWARD_WM_CLEAR(hwnd, fn)   (void)(fn)((hwnd),WM_CLEAR,0,0)
 
#define FORWARD_WM_CLOSE(hwnd, fn)   (void)(fn)((hwnd),WM_CLOSE,0,0)
 
#define FORWARD_WM_COMMAND(hwnd, id, hwndCtl, codeNotify, fn)   (void)(fn)((hwnd),WM_COMMAND,MAKEWPARAM((UINT)(id),(UINT)(codeNotify)),(LPARAM)(HWND)(hwndCtl))
 
#define FORWARD_WM_COMMNOTIFY(hwnd, cid, flags, fn)   (void)(fn)((hwnd),WM_COMMNOTIFY,(WPARAM)(cid),MAKELPARAM((flags),0))
 
#define FORWARD_WM_COMPACTING(hwnd, compactRatio, fn)   (void)(fn)((hwnd),WM_COMPACTING,(WPARAM)(UINT)(compactRatio),0)
 
#define FORWARD_WM_COMPAREITEM(hwnd, lpCompareItem, fn)   (int)(DWORD)(fn)((hwnd),WM_COMPAREITEM,(WPARAM)(((const COMPAREITEMSTRUCT*)(lpCompareItem))->CtlID),(LPARAM)(const COMPAREITEMSTRUCT*)(lpCompareItem))
 
#define FORWARD_WM_COPY(hwnd, fn)   (void)(fn)((hwnd),WM_COPY,0,0)
 
#define FORWARD_WM_CREATE(hwnd, lpCreateStruct, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_CREATE,0,(LPARAM)(LPCREATESTRUCT)(lpCreateStruct))
 
#define FORWARD_WM_CTLCOLORBTN(hwnd, hdc, hwndChild, fn)   (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORBTN,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))
 
#define FORWARD_WM_CTLCOLORDLG(hwnd, hdc, hwndChild, fn)   (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORDLG,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))
 
#define FORWARD_WM_CTLCOLOREDIT(hwnd, hdc, hwndChild, fn)   (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLOREDIT,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))
 
#define FORWARD_WM_CTLCOLORLISTBOX(hwnd, hdc, hwndChild, fn)   (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORLISTBOX,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))
 
#define FORWARD_WM_CTLCOLORMSGBOX(hwnd, hdc, hwndChild, fn)   (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORMSGBOX,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))
 
#define FORWARD_WM_CTLCOLORSCROLLBAR(hwnd, hdc, hwndChild, fn)   (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORSCROLLBAR,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))
 
#define FORWARD_WM_CTLCOLORSTATIC(hwnd, hdc, hwndChild, fn)   (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORSTATIC,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))
 
#define FORWARD_WM_CUT(hwnd, fn)   (void)(fn)((hwnd),WM_CUT,0,0)
 
#define FORWARD_WM_DEADCHAR(hwnd, ch, cRepeat, fn)   (void)(fn)((hwnd),WM_DEADCHAR,(WPARAM)(TCHAR)(ch),MAKELPARAM((cRepeat),0))
 
#define FORWARD_WM_DELETEITEM(hwnd, lpDeleteItem, fn)   (void)(fn)((hwnd),WM_DELETEITEM,(WPARAM)(((const DELETEITEMSTRUCT*)(lpDeleteItem))->CtlID),(LPARAM)(const DELETEITEMSTRUCT*)(lpDeleteItem))
 
#define FORWARD_WM_DESTROY(hwnd, fn)   (void)(fn)((hwnd),WM_DESTROY,0,0)
 
#define FORWARD_WM_DESTROYCLIPBOARD(hwnd, fn)   (void)(fn)((hwnd),WM_DESTROYCLIPBOARD,0,0)
 
#define FORWARD_WM_DEVMODECHANGE(hwnd, lpszDeviceName, fn)   (void)(fn)((hwnd),WM_DEVMODECHANGE,0,(LPARAM)(LPCTSTR)(lpszDeviceName))
 
#define FORWARD_WM_DRAWCLIPBOARD(hwnd, fn)   (void)(fn)((hwnd),WM_DRAWCLIPBOARD,0,0)
 
#define FORWARD_WM_DRAWITEM(hwnd, lpDrawItem, fn)   (void)(fn)((hwnd),WM_DRAWITEM,(WPARAM)(((const DRAWITEMSTRUCT*)lpDrawItem)->CtlID),(LPARAM)(const DRAWITEMSTRUCT*)(lpDrawItem))
 
#define FORWARD_WM_DROPFILES(hwnd, hdrop, fn)   (void)(fn)((hwnd),WM_DROPFILES,(WPARAM)(HDROP)(hdrop),0)
 
#define FORWARD_WM_ENABLE(hwnd, fEnable, fn)   (void)(fn)((hwnd),WM_ENABLE,(WPARAM)(BOOL)(fEnable),0)
 
#define FORWARD_WM_ENDSESSION(hwnd, fEnding, fn)   (void)(fn)((hwnd),WM_ENDSESSION,(WPARAM)(BOOL)(fEnding),0)
 
#define FORWARD_WM_ENTERIDLE(hwnd, source, hwndSource, fn)   (void)(fn)((hwnd),WM_ENTERIDLE,(WPARAM)(UINT)(source),(LPARAM)(HWND)(hwndSource))
 
#define FORWARD_WM_ERASEBKGND(hwnd, hdc, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_ERASEBKGND,(WPARAM)(HDC)(hdc),0)
 
#define FORWARD_WM_FONTCHANGE(hwnd, fn)   (void)(fn)((hwnd),WM_FONTCHANGE,0,0)
 
#define FORWARD_WM_GETDLGCODE(hwnd, lpmsg, fn)   (UINT)(DWORD)(fn)((hwnd),WM_GETDLGCODE,(lpmsg ? lpmsg->wParam : 0),(LPARAM)(LPMSG)(lpmsg))
 
#define FORWARD_WM_GETFONT(hwnd, fn)   (HFONT)(UINT_PTR)(fn)((hwnd),WM_GETFONT,0,0)
 
#define FORWARD_WM_GETMINMAXINFO(hwnd, lpMinMaxInfo, fn)   (void)(fn)((hwnd),WM_GETMINMAXINFO,0,(LPARAM)(LPMINMAXINFO)(lpMinMaxInfo))
 
#define FORWARD_WM_GETTEXT(hwnd, cchTextMax, lpszText, fn)   (int)(DWORD)(fn)((hwnd),WM_GETTEXT,(WPARAM)(int)(cchTextMax),(LPARAM)(LPTSTR)(lpszText))
 
#define FORWARD_WM_GETTEXTLENGTH(hwnd, fn)   (int)(DWORD)(fn)((hwnd),WM_GETTEXTLENGTH,0,0)
 
#define FORWARD_WM_HSCROLL(hwnd, hwndCtl, code, pos, fn)   (void)(fn)((hwnd),WM_HSCROLL,MAKEWPARAM((UINT)(int)(code),(UINT)(int)(pos)),(LPARAM)(HWND)(hwndCtl))
 
#define FORWARD_WM_HSCROLLCLIPBOARD(hwnd, hwndCBViewer, code, pos, fn)   (void)(fn)((hwnd),WM_HSCROLLCLIPBOARD,(WPARAM)(HWND)(hwndCBViewer),MAKELPARAM((code),(pos)))
 
#define FORWARD_WM_ICONERASEBKGND(hwnd, hdc, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_ICONERASEBKGND,(WPARAM)(HDC)(hdc),0)
 
#define FORWARD_WM_INITDIALOG(hwnd, hwndFocus, lParam, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_INITDIALOG,(WPARAM)(HWND)(hwndFocus),(lParam))
 
#define FORWARD_WM_INITMENU(hwnd, hMenu, fn)   (void)(fn)((hwnd),WM_INITMENU,(WPARAM)(HMENU)(hMenu),0)
 
#define FORWARD_WM_INITMENUPOPUP(hwnd, hMenu, item, fSystemMenu, fn)   (void)(fn)((hwnd),WM_INITMENUPOPUP,(WPARAM)(HMENU)(hMenu),MAKELPARAM((item),(fSystemMenu)))
 
#define FORWARD_WM_KEYDOWN(hwnd, vk, cRepeat, flags, fn)   (void)(fn)((hwnd),WM_KEYDOWN,(WPARAM)(UINT)(vk),MAKELPARAM((cRepeat),(flags)))
 
#define FORWARD_WM_KEYUP(hwnd, vk, cRepeat, flags, fn)   (void)(fn)((hwnd),WM_KEYUP,(WPARAM)(UINT)(vk),MAKELPARAM((cRepeat),(flags)))
 
#define FORWARD_WM_KILLFOCUS(hwnd, hwndNewFocus, fn)   (void)(fn)((hwnd),WM_KILLFOCUS,(WPARAM)(HWND)(hwndNewFocus),0)
 
#define FORWARD_WM_LBUTTONDOWN(hwnd, fDoubleClick, x, y, keyFlags, fn)   (void)(fn)((hwnd),(fDoubleClick) ? WM_LBUTTONDBLCLK : WM_LBUTTONDOWN,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_LBUTTONUP(hwnd, x, y, keyFlags, fn)   (void)(fn)((hwnd),WM_LBUTTONUP,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_MBUTTONDOWN(hwnd, fDoubleClick, x, y, keyFlags, fn)   (void)(fn)((hwnd),(fDoubleClick) ? WM_MBUTTONDBLCLK : WM_MBUTTONDOWN,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_MBUTTONUP(hwnd, x, y, keyFlags, fn)   (void)(fn)((hwnd),WM_MBUTTONUP,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_MDIACTIVATE(hwnd, fActive, hwndActivate, hwndDeactivate, fn)   (void)(fn)(hwnd,WM_MDIACTIVATE,(WPARAM)(hwndDeactivate),(LPARAM)(hwndActivate))
 
#define FORWARD_WM_MDICASCADE(hwnd, cmd, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_MDICASCADE,(WPARAM)(cmd),0)
 
#define FORWARD_WM_MDICREATE(hwnd, lpmcs, fn)   (HWND)(UINT_PTR)(fn)((hwnd),WM_MDICREATE,0,(LPARAM)(LPMDICREATESTRUCT)(lpmcs))
 
#define FORWARD_WM_MDIDESTROY(hwnd, hwndDestroy, fn)   (void)(fn)((hwnd),WM_MDIDESTROY,(WPARAM)(hwndDestroy),0)
 
#define FORWARD_WM_MDIGETACTIVE(hwnd, fn)   (HWND)(UINT_PTR)(fn)((hwnd),WM_MDIGETACTIVE,0,0)
 
#define FORWARD_WM_MDIICONARRANGE(hwnd, fn)   (void)(fn)((hwnd),WM_MDIICONARRANGE,0,0)
 
#define FORWARD_WM_MDIMAXIMIZE(hwnd, hwndMaximize, fn)   (void)(fn)((hwnd),WM_MDIMAXIMIZE,(WPARAM)(hwndMaximize),0)
 
#define FORWARD_WM_MDINEXT(hwnd, hwndCur, fPrev, fn)   (HWND)(UINT_PTR)(fn)((hwnd),WM_MDINEXT,(WPARAM)(hwndCur),(LPARAM)(fPrev))
 
#define FORWARD_WM_MDIRESTORE(hwnd, hwndRestore, fn)   (void)(fn)((hwnd),WM_MDIRESTORE,(WPARAM)(hwndRestore),0)
 
#define FORWARD_WM_MDISETMENU(hwnd, fRefresh, hmenuFrame, hmenuWindow, fn)   (HMENU)(UINT_PTR)(fn)((hwnd),WM_MDISETMENU,(WPARAM)((fRefresh) ? (hmenuFrame) : 0),(LPARAM)(hmenuWindow))
 
#define FORWARD_WM_MDITILE(hwnd, cmd, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_MDITILE,(WPARAM)(cmd),0)
 
#define FORWARD_WM_MEASUREITEM(hwnd, lpMeasureItem, fn)   (void)(fn)((hwnd),WM_MEASUREITEM,(WPARAM)(((MEASUREITEMSTRUCT*)lpMeasureItem)->CtlID),(LPARAM)(MEASUREITEMSTRUCT*)(lpMeasureItem))
 
#define FORWARD_WM_MENUCHAR(hwnd, ch, flags, hmenu, fn)   (DWORD)(fn)((hwnd),WM_MENUCHAR,MAKEWPARAM(flags,(WORD)(ch)),(LPARAM)(HMENU)(hmenu))
 
#define FORWARD_WM_MENUSELECT(hwnd, hmenu, item, hmenuPopup, flags, fn)   (void)(fn)((hwnd),WM_MENUSELECT,MAKEWPARAM((item),(flags)),(LPARAM)(HMENU)((hmenu) ? (hmenu) : (hmenuPopup)))
 
#define FORWARD_WM_MOUSEACTIVATE(hwnd, hwndTopLevel, codeHitTest, msg, fn)   (int)(DWORD)(fn)((hwnd),WM_MOUSEACTIVATE,(WPARAM)(HWND)(hwndTopLevel),MAKELPARAM((codeHitTest),(msg)))
 
#define FORWARD_WM_MOUSEMOVE(hwnd, x, y, keyFlags, fn)   (void)(fn)((hwnd),WM_MOUSEMOVE,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_MOVE(hwnd, x, y, fn)   (void)(fn)((hwnd),WM_MOVE,0,MAKELPARAM((x),(y)))
 
#define FORWARD_WM_NCACTIVATE(hwnd, fActive, hwndActDeact, fMinimized, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_NCACTIVATE,(WPARAM)(BOOL)(fActive),0)
 
#define FORWARD_WM_NCCALCSIZE(hwnd, fCalcValidRects, lpcsp, fn)   (UINT)(DWORD)(fn)((hwnd),WM_NCCALCSIZE,0,(LPARAM)(NCCALCSIZE_PARAMS*)(lpcsp))
 
#define FORWARD_WM_NCCREATE(hwnd, lpCreateStruct, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_NCCREATE,0,(LPARAM)(LPCREATESTRUCT)(lpCreateStruct))
 
#define FORWARD_WM_NCDESTROY(hwnd, fn)   (void)(fn)((hwnd),WM_NCDESTROY,0,0)
 
#define FORWARD_WM_NCHITTEST(hwnd, x, y, fn)   (UINT)(DWORD)(fn)((hwnd),WM_NCHITTEST,0,MAKELPARAM((x),(y)))
 
#define FORWARD_WM_NCLBUTTONDOWN(hwnd, fDoubleClick, x, y, codeHitTest, fn)   (void)(fn)((hwnd),(fDoubleClick) ? WM_NCLBUTTONDBLCLK : WM_NCLBUTTONDOWN,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_NCLBUTTONUP(hwnd, x, y, codeHitTest, fn)   (void)(fn)((hwnd),WM_NCLBUTTONUP,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_NCMBUTTONDOWN(hwnd, fDoubleClick, x, y, codeHitTest, fn)   (void)(fn)((hwnd),(fDoubleClick) ? WM_NCMBUTTONDBLCLK : WM_NCMBUTTONDOWN,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)) )
 
#define FORWARD_WM_NCMBUTTONUP(hwnd, x, y, codeHitTest, fn)   (void)(fn)((hwnd),WM_NCMBUTTONUP,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)) )
 
#define FORWARD_WM_NCMOUSEMOVE(hwnd, x, y, codeHitTest, fn)   (void)(fn)((hwnd),WM_NCMOUSEMOVE,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_NCPAINT(hwnd, hrgn, fn)   (void)(fn)((hwnd),WM_NCPAINT,(WPARAM)(HRGN)(hrgn),0)
 
#define FORWARD_WM_NCRBUTTONDOWN(hwnd, fDoubleClick, x, y, codeHitTest, fn)   (void)(fn)((hwnd),(fDoubleClick) ? WM_NCRBUTTONDBLCLK : WM_NCRBUTTONDOWN,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)) )
 
#define FORWARD_WM_NCRBUTTONUP(hwnd, x, y, codeHitTest, fn)   (void)(fn)((hwnd),WM_NCRBUTTONUP,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)) )
 
#define FORWARD_WM_NEXTDLGCTL(hwnd, hwndSetFocus, fNext, fn)   (HWND)(UINT_PTR)(fn)((hwnd),WM_NEXTDLGCTL,(WPARAM)(HWND)(hwndSetFocus),(LPARAM)(fNext))
 
#define FORWARD_WM_PAINT(hwnd, fn)   (void)(fn)((hwnd),WM_PAINT,0,0)
 
#define FORWARD_WM_PAINTCLIPBOARD(hwnd, hwndCBViewer, lpPaintStruct, fn)   (void)(fn)((hwnd),WM_PAINTCLIPBOARD,(WPARAM)(HWND)(hwndCBViewer),(LPARAM)(LPPAINTSTRUCT)(lpPaintStruct))
 
#define FORWARD_WM_PALETTECHANGED(hwnd, hwndPaletteChange, fn)   (void)(fn)((hwnd),WM_PALETTECHANGED,(WPARAM)(HWND)(hwndPaletteChange),0)
 
#define FORWARD_WM_PALETTEISCHANGING(hwnd, hwndPaletteChange, fn)   (void)(fn)((hwnd),WM_PALETTEISCHANGING,(WPARAM)(HWND)(hwndPaletteChange),0)
 
#define FORWARD_WM_PARENTNOTIFY(hwnd, msg, hwndChild, idChild, fn)   (void)(fn)((hwnd),WM_PARENTNOTIFY,MAKEWPARAM(msg,idChild),(LPARAM)(hwndChild))
 
#define FORWARD_WM_PASTE(hwnd, fn)   (void)(fn)((hwnd),WM_PASTE,0,0)
 
#define FORWARD_WM_POWER(hwnd, code, fn)   (void)(fn)((hwnd),WM_POWER,(WPARAM)(int)(code),0)
 
#define FORWARD_WM_QUERYDRAGICON(hwnd, fn)   (HICON)(UINT_PTR)(fn)((hwnd),WM_QUERYDRAGICON,0,0)
 
#define FORWARD_WM_QUERYENDSESSION(hwnd, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_QUERYENDSESSION,0,0)
 
#define FORWARD_WM_QUERYNEWPALETTE(hwnd, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_QUERYNEWPALETTE,0,0)
 
#define FORWARD_WM_QUERYOPEN(hwnd, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_QUERYOPEN,0,0)
 
#define FORWARD_WM_QUEUESYNC(hwnd, fn)   (void)(fn)((hwnd),WM_QUEUESYNC,0,0)
 
#define FORWARD_WM_QUIT(hwnd, exitCode, fn)   (void)(fn)((hwnd),WM_QUIT,(WPARAM)(exitCode),0)
 
#define FORWARD_WM_RBUTTONDOWN(hwnd, fDoubleClick, x, y, keyFlags, fn)   (void)(fn)((hwnd),(fDoubleClick) ? WM_RBUTTONDBLCLK : WM_RBUTTONDOWN,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_RBUTTONUP(hwnd, x, y, keyFlags, fn)   (void)(fn)((hwnd),WM_RBUTTONUP,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_RENDERALLFORMATS(hwnd, fn)   (void)(fn)((hwnd),WM_RENDERALLFORMATS,0,0)
 
#define FORWARD_WM_RENDERFORMAT(hwnd, fmt, fn)   (HANDLE)(UINT_PTR)(fn)((hwnd),WM_RENDERFORMAT,(WPARAM)(UINT)(fmt),0)
 
#define FORWARD_WM_SETCURSOR(hwnd, hwndCursor, codeHitTest, msg, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_SETCURSOR,(WPARAM)(HWND)(hwndCursor),MAKELPARAM((codeHitTest),(msg)))
 
#define FORWARD_WM_SETFOCUS(hwnd, hwndOldFocus, fn)   (void)(fn)((hwnd),WM_SETFOCUS,(WPARAM)(HWND)(hwndOldFocus),0)
 
#define FORWARD_WM_SETFONT(hwnd, hfont, fRedraw, fn)   (void)(fn)((hwnd),WM_SETFONT,(WPARAM)(HFONT)(hfont),(LPARAM)(BOOL)(fRedraw))
 
#define FORWARD_WM_SETREDRAW(hwnd, fRedraw, fn)   (void)(fn)((hwnd),WM_SETREDRAW,(WPARAM)(BOOL)(fRedraw),0)
 
#define FORWARD_WM_SETTEXT(hwnd, lpszText, fn)   (void)(fn)((hwnd),WM_SETTEXT,0,(LPARAM)(LPCTSTR)(lpszText))
 
#define FORWARD_WM_SHOWWINDOW(hwnd, fShow, status, fn)   (void)(fn)((hwnd),WM_SHOWWINDOW,(WPARAM)(BOOL)(fShow),(LPARAM)(UINT)(status))
 
#define FORWARD_WM_SIZE(hwnd, state, cx, cy, fn)   (void)(fn)((hwnd),WM_SIZE,(WPARAM)(UINT)(state),MAKELPARAM((cx),(cy)))
 
#define FORWARD_WM_SIZECLIPBOARD(hwnd, hwndCBViewer, lprc, fn)   (void)(fn)((hwnd),WM_SIZECLIPBOARD,(WPARAM)(HWND)(hwndCBViewer),(LPARAM)(LPRECT)(lprc))
 
#define FORWARD_WM_SPOOLERSTATUS(hwnd, status, cJobInQueue, fn)   (void)(fn)((hwnd),WM_SPOOLERSTATUS,(WPARAM)(status),MAKELPARAM((cJobInQueue),0))
 
#define FORWARD_WM_SYSCHAR(hwnd, ch, cRepeat, fn)   (void)(fn)((hwnd),WM_SYSCHAR,(WPARAM)(TCHAR)(ch),MAKELPARAM((cRepeat),0))
 
#define FORWARD_WM_SYSCOLORCHANGE(hwnd, fn)   (void)(fn)((hwnd),WM_SYSCOLORCHANGE,0,0)
 
#define FORWARD_WM_SYSCOMMAND(hwnd, cmd, x, y, fn)   (void)(fn)((hwnd),WM_SYSCOMMAND,(WPARAM)(UINT)(cmd),MAKELPARAM((x),(y)))
 
#define FORWARD_WM_SYSDEADCHAR(hwnd, ch, cRepeat, fn)   (void)(fn)((hwnd),WM_SYSDEADCHAR,(WPARAM)(TCHAR)(ch),MAKELPARAM((cRepeat),0))
 
#define FORWARD_WM_SYSKEYDOWN(hwnd, vk, cRepeat, flags, fn)   (void)(fn)((hwnd),WM_SYSKEYDOWN,(WPARAM)(UINT)(vk),MAKELPARAM((cRepeat),(flags)))
 
#define FORWARD_WM_SYSKEYUP(hwnd, vk, cRepeat, flags, fn)   (void)(fn)((hwnd),WM_SYSKEYUP,(WPARAM)(UINT)(vk),MAKELPARAM((cRepeat),(flags)))
 
#define FORWARD_WM_SYSTEMERROR(hwnd, errCode, fn)   0
 
#define FORWARD_WM_TIMECHANGE(hwnd, fn)   (void)(fn)((hwnd),WM_TIMECHANGE,0,0)
 
#define FORWARD_WM_TIMER(hwnd, id, fn)   (void)(fn)((hwnd),WM_TIMER,(WPARAM)(UINT)(id),0)
 
#define FORWARD_WM_UNDO(hwnd, fn)   (void)(fn)((hwnd),WM_UNDO,0,0)
 
#define FORWARD_WM_VKEYTOITEM(hwnd, vk, hwndListBox, iCaret, fn)   (int)(DWORD)(fn)((hwnd),WM_VKEYTOITEM,MAKEWPARAM((vk),(iCaret)),(LPARAM)(hwndListBox))
 
#define FORWARD_WM_VSCROLL(hwnd, hwndCtl, code, pos, fn)   (void)(fn)((hwnd),WM_VSCROLL,MAKEWPARAM((UINT)(int)(code),(UINT)(int)(pos)),(LPARAM)(HWND)(hwndCtl))
 
#define FORWARD_WM_VSCROLLCLIPBOARD(hwnd, hwndCBViewer, code, pos, fn)   (void)(fn)((hwnd),WM_VSCROLLCLIPBOARD,(WPARAM)(HWND)(hwndCBViewer),MAKELPARAM((code),(pos)))
 
#define FORWARD_WM_WINDOWPOSCHANGED(hwnd, lpwpos, fn)   (void)(fn)((hwnd),WM_WINDOWPOSCHANGED,0,(LPARAM)(const LPWINDOWPOS)(lpwpos))
 
#define FORWARD_WM_WINDOWPOSCHANGING(hwnd, lpwpos, fn)   (BOOL)(DWORD)(fn)((hwnd),WM_WINDOWPOSCHANGING,0,(LPARAM)(LPWINDOWPOS)(lpwpos))
 
#define FORWARD_WM_WININICHANGE(hwnd, lpszSectionName, fn)   (void)(fn)((hwnd),WM_WININICHANGE,0,(LPARAM)(LPCTSTR)(lpszSectionName))
 
#define GET_EM_LINESCROLL_MPS(vert, horz)   (WPARAM)horz,(LONG)vert
 
#define GET_EM_SETSEL_END(wp, lp)   (lp)
 
#define GET_EM_SETSEL_MPS(iStart, iEnd)   (WPARAM)(iStart),(LONG)(iEnd)
 
#define GET_EM_SETSEL_START(wp, lp)   (INT)(wp)
 
#define GET_LPARAM(wp, lp)   (lp)
 
#define GET_WM_ACTIVATE_FMINIMIZED(wp, lp)   (BOOL)HIWORD(wp)
 
#define GET_WM_ACTIVATE_HWND(wp, lp)   (HWND)(lp)
 
#define GET_WM_ACTIVATE_MPS(s, fmin, hwnd)   (WPARAM)MAKELONG((s),(fmin)),(LONG)(hwnd)
 
#define GET_WM_ACTIVATE_STATE(wp, lp)   LOWORD(wp)
 
#define GET_WM_CHANGECBCHAIN_HWNDNEXT(wp, lp)   (HWND)(lp)
 
#define GET_WM_CHARTOITEM_CHAR(wp, lp)   (TCHAR)LOWORD(wp)
 
#define GET_WM_CHARTOITEM_HWND(wp, lp)   (HWND)(lp)
 
#define GET_WM_CHARTOITEM_MPS(ch, pos, hwnd)   (WPARAM)MAKELONG((pos),(ch)),(LONG)(hwnd)
 
#define GET_WM_CHARTOITEM_POS(wp, lp)   HIWORD(wp)
 
#define GET_WM_COMMAND_CMD(wp, lp)   HIWORD(wp)
 
#define GET_WM_COMMAND_HWND(wp, lp)   (HWND)(lp)
 
#define GET_WM_COMMAND_ID(wp, lp)   LOWORD(wp)
 
#define GET_WM_COMMAND_MPS(id, hwnd, cmd)   (WPARAM)MAKELONG(id,cmd),(LONG)(hwnd)
 
#define GET_WM_CTLCOLOR_HDC(wp, lp, msg)   (HDC)(wp)
 
#define GET_WM_CTLCOLOR_HWND(wp, lp, msg)   (HWND)(lp)
 
#define GET_WM_CTLCOLOR_MPS(hdc, hwnd, type)   (WPARAM)(hdc),(LONG)(hwnd)
 
#define GET_WM_CTLCOLOR_MSG(type)   (WORD)(WM_CTLCOLORMSGBOX+(type))
 
#define GET_WM_CTLCOLOR_TYPE(wp, lp, msg)   (WORD)(msg - WM_CTLCOLORMSGBOX)
 
#define GET_WM_HSCROLL_CODE(wp, lp)   LOWORD(wp)
 
#define GET_WM_HSCROLL_HWND(wp, lp)   (HWND)(lp)
 
#define GET_WM_HSCROLL_MPS(code, pos, hwnd)   (WPARAM)MAKELONG(code,pos),(LONG)(hwnd)
 
#define GET_WM_HSCROLL_POS(wp, lp)   HIWORD(wp)
 
#define GET_WM_MDIACTIVATE_FACTIVATE(hwnd, wp, lp)   (lp == (LONG)hwnd)
 
#define GET_WM_MDIACTIVATE_HWNDACTIVATE(wp, lp)   (HWND)(lp)
 
#define GET_WM_MDIACTIVATE_HWNDDEACT(wp, lp)   (HWND)(wp)
 
#define GET_WM_MDIACTIVATE_MPS(f, hwndD, hwndA)   (WPARAM)(hwndA),0
 
#define GET_WM_MDISETMENU_MPS(hmenuF, hmenuW)   (WPARAM)hmenuF,(LONG)hmenuW
 
#define GET_WM_MENUCHAR_CHAR(wp, lp)   (TCHAR)LOWORD(wp)
 
#define GET_WM_MENUCHAR_FMENU(wp, lp)   (BOOL)HIWORD(wp)
 
#define GET_WM_MENUCHAR_HMENU(wp, lp)   (HMENU)(lp)
 
#define GET_WM_MENUCHAR_MPS(ch, hmenu, f)   (WPARAM)MAKELONG(ch,f),(LONG)(hmenu)
 
#define GET_WM_MENUSELECT_CMD(wp, lp)   LOWORD(wp)
 
#define GET_WM_MENUSELECT_FLAGS(wp, lp)   (UINT)(int)(short)HIWORD(wp)
 
#define GET_WM_MENUSELECT_HMENU(wp, lp)   (HMENU)(lp)
 
#define GET_WM_MENUSELECT_MPS(cmd, f, hmenu)   (WPARAM)MAKELONG(cmd,f),(LONG)(hmenu)
 
#define GET_WM_PARENTNOTIFY2_MPS(msg, x, y)   (WPARAM)MAKELONG(0,msg),MAKELONG(x,y)
 
#define GET_WM_PARENTNOTIFY_HWNDCHILD(wp, lp)   (HWND)(lp)
 
#define GET_WM_PARENTNOTIFY_ID(wp, lp)   HIWORD(wp)
 
#define GET_WM_PARENTNOTIFY_MPS(msg, id, hwnd)   (WPARAM)MAKELONG(id,msg),(LONG)(hwnd)
 
#define GET_WM_PARENTNOTIFY_MSG(wp, lp)   LOWORD(wp)
 
#define GET_WM_PARENTNOTIFY_X(wp, lp)   (int)(short)LOWORD(lp)
 
#define GET_WM_PARENTNOTIFY_Y(wp, lp)   (int)(short)HIWORD(lp)
 
#define GET_WM_VKEYTOITEM_CODE(wp, lp)   (int)(short)LOWORD(wp)
 
#define GET_WM_VKEYTOITEM_HWND(wp, lp)   (HWND)(lp)
 
#define GET_WM_VKEYTOITEM_ITEM(wp, lp)   HIWORD(wp)
 
#define GET_WM_VKEYTOITEM_MPS(code, item, hwnd)   (WPARAM)MAKELONG(item,code),(LONG)(hwnd)
 
#define GET_WM_VSCROLL_CODE(wp, lp)   LOWORD(wp)
 
#define GET_WM_VSCROLL_HWND(wp, lp)   (HWND)(lp)
 
#define GET_WM_VSCROLL_MPS(code, pos, hwnd)   (WPARAM)MAKELONG(code,pos),(LONG)(hwnd)
 
#define GET_WM_VSCROLL_POS(wp, lp)   HIWORD(wp)
 
#define GET_WPARAM(wp, lp)   (wp)
 
#define GET_X_LPARAM(lp)   ((int)(short)LOWORD(lp))
 
#define GET_Y_LPARAM(lp)   ((int)(short)HIWORD(lp))
 
#define GetFirstChild(hwnd)   GetTopWindow(hwnd)
 
#define GetFirstSibling(hwnd)   GetWindow(hwnd,GW_HWNDFIRST)
 
#define GetInstanceModule(hInstance)   (HMODULE)(hInstance)
 
#define GetLastSibling(hwnd)   GetWindow(hwnd,GW_HWNDLAST)
 
#define GetNextSibling(hwnd)   GetWindow(hwnd,GW_HWNDNEXT)
 
#define GetPrevSibling(hwnd)   GetWindow(hwnd,GW_HWNDPREV)
 
#define GetStockBrush(i)   ((HBRUSH)GetStockObject(i))
 
#define GetStockFont(i)   ((HFONT)GetStockObject(i))
 
#define GetStockPen(i)   ((HPEN)GetStockObject(i))
 
#define GetWindowExStyle(hwnd)   ((DWORD)GetWindowLong(hwnd,GWL_EXSTYLE))
 
#define GetWindowFont(hwnd)   FORWARD_WM_GETFONT((hwnd),SNDMSG)
 
#define GetWindowID(hwnd)   GetDlgCtrlID(hwnd)
 
#define GetWindowInstance(hwnd)   ((HMODULE)GetWindowLongPtr(hwnd,GWLP_HINSTANCE))
 
#define GetWindowOwner(hwnd)   GetWindow(hwnd,GW_OWNER)
 
#define GetWindowStyle(hwnd)   ((DWORD)GetWindowLong(hwnd,GWL_STYLE))
 
#define GlobalAllocPtr(flags, cb)   (GlobalLock(GlobalAlloc((flags),(cb))))
 
#define GlobalFreePtr(lp)   (GlobalUnlockPtr(lp),(BOOL)GlobalFree(GlobalPtrHandle(lp)))
 
#define GlobalLockPtr(lp)   ((BOOL)GlobalLock(GlobalPtrHandle(lp)))
 
#define GlobalPtrHandle(lp)   ((HGLOBAL)GlobalHandle(lp))
 
#define GlobalReAllocPtr(lp, cbNew, flags)   (GlobalUnlockPtr(lp),GlobalLock(GlobalReAlloc(GlobalPtrHandle(lp) ,(cbNew),(flags))))
 
#define GlobalUnlockPtr(lp)   GlobalUnlock(GlobalPtrHandle(lp))
 
#define HANDLE_MSG(hwnd, message, fn)   case (message): return HANDLE_##message((hwnd),(wParam),(lParam),(fn))
 
#define HANDLE_WM_ACTIVATE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)LOWORD(wParam),(HWND)(lParam),(BOOL)HIWORD(wParam)),0)
 
#define HANDLE_WM_ACTIVATEAPP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(BOOL)(wParam),(DWORD)(lParam)),0)
 
#define HANDLE_WM_ASKCBFORMATNAME(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(wParam),(LPTSTR)(lParam)),0)
 
#define HANDLE_WM_CANCELMODE(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_CHANGECBCHAIN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam),(HWND)(lParam)),0)
 
#define HANDLE_WM_CHAR(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(TCHAR)(wParam),(int)(short)LOWORD(lParam)),0)
 
#define HANDLE_WM_CHARTOITEM(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(int)(fn)((hwnd),(UINT)LOWORD(wParam),(HWND)(lParam),(int)(short)HIWORD(wParam))
 
#define HANDLE_WM_CHILDACTIVATE(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_CLEAR(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_CLOSE(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_COMMAND(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(LOWORD(wParam)),(HWND)(lParam),(UINT)HIWORD(wParam)),0)
 
#define HANDLE_WM_COMMNOTIFY(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(wParam),(UINT)LOWORD(lParam)),0)
 
#define HANDLE_WM_COMPACTING(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam)),0)
 
#define HANDLE_WM_COMPAREITEM(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(int)(fn)((hwnd),(const COMPAREITEMSTRUCT*)(lParam))
 
#define HANDLE_WM_CONTEXTMENU(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam),(UINT)GET_X_LPARAM(lParam),(UINT)GET_Y_LPARAM(lParam)),0)
 
#define HANDLE_WM_COPY(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_COPYDATA(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam),(PCOPYDATASTRUCT)(lParam)),0)
 
#define HANDLE_WM_CREATE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(LPCREATESTRUCT)(lParam)) ? 0 : (LRESULT)-1L)
 
#define HANDLE_WM_CTLCOLORBTN(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd),(HDC)(wParam),(HWND)(lParam),CTLCOLOR_BTN)
 
#define HANDLE_WM_CTLCOLORDLG(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd),(HDC)(wParam),(HWND)(lParam),CTLCOLOR_DLG)
 
#define HANDLE_WM_CTLCOLOREDIT(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd),(HDC)(wParam),(HWND)(lParam),CTLCOLOR_EDIT)
 
#define HANDLE_WM_CTLCOLORLISTBOX(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd),(HDC)(wParam),(HWND)(lParam),CTLCOLOR_LISTBOX)
 
#define HANDLE_WM_CTLCOLORMSGBOX(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd),(HDC)(wParam),(HWND)(lParam),CTLCOLOR_MSGBOX)
 
#define HANDLE_WM_CTLCOLORSCROLLBAR(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd),(HDC)(wParam),(HWND)(lParam),CTLCOLOR_SCROLLBAR)
 
#define HANDLE_WM_CTLCOLORSTATIC(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HBRUSH)(fn)((hwnd),(HDC)(wParam),(HWND)(lParam),CTLCOLOR_STATIC)
 
#define HANDLE_WM_CUT(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_DEADCHAR(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(TCHAR)(wParam),(int)(short)LOWORD(lParam)),0)
 
#define HANDLE_WM_DELETEITEM(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(const DELETEITEMSTRUCT*)(lParam)),0)
 
#define HANDLE_WM_DESTROY(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_DESTROYCLIPBOARD(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_DEVICECHANGE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(BOOL)(fn)((hwnd),(UINT)(wParam),(DWORD)(wParam))
 
#define HANDLE_WM_DEVMODECHANGE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(LPCTSTR)(lParam)),0)
 
#define HANDLE_WM_DISPLAYCHANGE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),(UINT)LOWORD(lParam),(UINT)HIWORD(wParam)),0)
 
#define HANDLE_WM_DRAWCLIPBOARD(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_DRAWITEM(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(const DRAWITEMSTRUCT*)(lParam)),0)
 
#define HANDLE_WM_DROPFILES(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HDROP)(wParam)),0)
 
#define HANDLE_WM_ENABLE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(BOOL)(wParam)),0)
 
#define HANDLE_WM_ENDSESSION(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(BOOL)(wParam)),0)
 
#define HANDLE_WM_ENTERIDLE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),(HWND)(lParam)),0)
 
#define HANDLE_WM_ERASEBKGND(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(BOOL)(fn)((hwnd),(HDC)(wParam))
 
#define HANDLE_WM_FONTCHANGE(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_GETDLGCODE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(UINT)(fn)(hwnd,(LPMSG)(lParam))
 
#define HANDLE_WM_GETFONT(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HFONT)(fn)(hwnd)
 
#define HANDLE_WM_GETMINMAXINFO(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(LPMINMAXINFO)(lParam)),0)
 
#define HANDLE_WM_GETTEXT(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(int)(fn)((hwnd),(int)(wParam),(LPTSTR)(lParam))
 
#define HANDLE_WM_GETTEXTLENGTH(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(int)(fn)(hwnd)
 
#define HANDLE_WM_HOTKEY(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(wParam),(UINT)LOWORD(lParam),(UINT)HIWORD(lParam)),0)
 
#define HANDLE_WM_HSCROLL(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(lParam),(UINT)(LOWORD(wParam)),(int)(short)HIWORD(wParam)),0)
 
#define HANDLE_WM_HSCROLLCLIPBOARD(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam),(UINT)LOWORD(lParam),(int)(short)HIWORD(lParam)),0)
 
#define HANDLE_WM_ICONERASEBKGND(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(BOOL)(fn)((hwnd),(HDC)(wParam))
 
#define HANDLE_WM_INITDIALOG(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(UINT)(BOOL)(fn)((hwnd),(HWND)(wParam),lParam)
 
#define HANDLE_WM_INITMENU(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HMENU)(wParam)),0)
 
#define HANDLE_WM_INITMENUPOPUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HMENU)(wParam),(UINT)LOWORD(lParam),(BOOL)HIWORD(lParam)),0)
 
#define HANDLE_WM_KEYDOWN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),TRUE,(int)(short)LOWORD(lParam),(UINT)HIWORD(lParam)),0)
 
#define HANDLE_WM_KEYUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),FALSE,(int)(short)LOWORD(lParam),(UINT)HIWORD(lParam)),0)
 
#define HANDLE_WM_KILLFOCUS(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam)),0)
 
#define HANDLE_WM_LBUTTONDBLCLK(hwnd, wParam, lParam, fn)   ((fn)((hwnd),TRUE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_LBUTTONDOWN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),FALSE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_LBUTTONUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_MBUTTONDBLCLK(hwnd, wParam, lParam, fn)   ((fn)((hwnd),TRUE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_MBUTTONDOWN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),FALSE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_MBUTTONUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_MDIACTIVATE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(BOOL)(lParam == (LPARAM)hwnd),(HWND)(lParam),(HWND)(wParam)),0)
 
#define HANDLE_WM_MDICASCADE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(fn)((hwnd),(UINT)(wParam))
 
#define HANDLE_WM_MDICREATE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(UINT)(fn)((hwnd),(LPMDICREATESTRUCT)(lParam))
 
#define HANDLE_WM_MDIDESTROY(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam)),0)
 
#define HANDLE_WM_MDIGETACTIVE(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HWND)(fn)(hwnd)
 
#define HANDLE_WM_MDIICONARRANGE(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_MDIMAXIMIZE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam)),0)
 
#define HANDLE_WM_MDINEXT(hwnd, wParam, lParam, fn)   (LRESULT)(HWND)(fn)((hwnd),(HWND)(wParam),(BOOL)lParam)
 
#define HANDLE_WM_MDIRESTORE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam)),0)
 
#define HANDLE_WM_MDISETMENU(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HMENU)(fn)((hwnd),(BOOL)(wParam),(HMENU)(wParam),(HMENU)(lParam))
 
#define HANDLE_WM_MDITILE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(fn)((hwnd),(UINT)(wParam))
 
#define HANDLE_WM_MEASUREITEM(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(MEASUREITEMSTRUCT*)(lParam)),0)
 
#define HANDLE_WM_MENUCHAR(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(fn)((hwnd),(UINT)(LOWORD(wParam)),(UINT)HIWORD(wParam),(HMENU)(lParam))
 
#define HANDLE_WM_MENUSELECT(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HMENU)(lParam),(int)(LOWORD(wParam)),(HIWORD(wParam) & MF_POPUP) ? GetSubMenu((HMENU)lParam,LOWORD(wParam)) : 0,(UINT)(((short)HIWORD(wParam) == -1) ? 0xFFFFFFFF : HIWORD(wParam))),0)
 
#define HANDLE_WM_MOUSEACTIVATE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(int)(fn)((hwnd),(HWND)(wParam),(UINT)LOWORD(lParam),(UINT)HIWORD(lParam))
 
#define HANDLE_WM_MOUSEMOVE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_MOUSEWHEEL(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(int)(short)HIWORD(wParam),(UINT)(short)LOWORD(wParam)),0)
 
#define HANDLE_WM_MOVE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam)),0)
 
#define HANDLE_WM_NCACTIVATE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(BOOL)(fn)((hwnd),(BOOL)(wParam),0,0)
 
#define HANDLE_WM_NCCALCSIZE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(UINT)(fn)((hwnd),(BOOL)(0),(NCCALCSIZE_PARAMS*)(lParam))
 
#define HANDLE_WM_NCCREATE(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(BOOL)(fn)((hwnd),(LPCREATESTRUCT)(lParam))
 
#define HANDLE_WM_NCDESTROY(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_NCHITTEST(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(UINT)(fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam))
 
#define HANDLE_WM_NCLBUTTONDBLCLK(hwnd, wParam, lParam, fn)   ((fn)((hwnd),TRUE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCLBUTTONDOWN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),FALSE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCLBUTTONUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCMBUTTONDBLCLK(hwnd, wParam, lParam, fn)   ((fn)((hwnd),TRUE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCMBUTTONDOWN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),FALSE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCMBUTTONUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCMOUSEMOVE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCPAINT(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HRGN)(wParam)),0)
 
#define HANDLE_WM_NCRBUTTONDBLCLK(hwnd, wParam, lParam, fn)   ((fn)((hwnd),TRUE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCRBUTTONDOWN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),FALSE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NCRBUTTONUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_NEXTDLGCTL(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(HWND)(fn)((hwnd),(HWND)(wParam),(BOOL)(lParam))
 
#define HANDLE_WM_PAINT(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_PAINTCLIPBOARD(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam),(const LPPAINTSTRUCT)GlobalLock((HGLOBAL)(lParam))),GlobalUnlock((HGLOBAL)(lParam)),0)
 
#define HANDLE_WM_PALETTECHANGED(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam)),0)
 
#define HANDLE_WM_PALETTEISCHANGING(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam)),0)
 
#define HANDLE_WM_PARENTNOTIFY(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)LOWORD(wParam),(HWND)(lParam),(UINT)HIWORD(wParam)),0)
 
#define HANDLE_WM_PASTE(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_POWER(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(wParam)),0)
 
#define HANDLE_WM_QUERYDRAGICON(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(UINT)(fn)(hwnd)
 
#define HANDLE_WM_QUERYENDSESSION(hwnd, wParam, lParam, fn)   MAKELRESULT((BOOL)(fn)(hwnd),0)
 
#define HANDLE_WM_QUERYNEWPALETTE(hwnd, wParam, lParam, fn)   MAKELRESULT((BOOL)(fn)(hwnd),0)
 
#define HANDLE_WM_QUERYOPEN(hwnd, wParam, lParam, fn)   MAKELRESULT((BOOL)(fn)(hwnd),0)
 
#define HANDLE_WM_QUEUESYNC(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_QUIT(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(wParam)),0)
 
#define HANDLE_WM_RBUTTONDBLCLK(hwnd, wParam, lParam, fn)   ((fn)((hwnd),TRUE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_RBUTTONDOWN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),FALSE,(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_RBUTTONUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam),(UINT)(wParam)),0)
 
#define HANDLE_WM_RENDERALLFORMATS(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_RENDERFORMAT(hwnd, wParam, lParam, fn)   (LRESULT)(UINT_PTR)(fn)((hwnd),(UINT)(wParam))
 
#define HANDLE_WM_SETCURSOR(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(BOOL)(fn)((hwnd),(HWND)(wParam),(UINT)LOWORD(lParam),(UINT)HIWORD(lParam))
 
#define HANDLE_WM_SETFOCUS(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam)),0)
 
#define HANDLE_WM_SETFONT(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HFONT)(wParam),(BOOL)(lParam)),0)
 
#define HANDLE_WM_SETREDRAW(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(BOOL)(wParam)),0)
 
#define HANDLE_WM_SETTEXT(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(LPCTSTR)(lParam)),0)
 
#define HANDLE_WM_SHOWWINDOW(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(BOOL)(wParam),(UINT)(lParam)),0)
 
#define HANDLE_WM_SIZE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam)),0)
 
#define HANDLE_WM_SIZECLIPBOARD(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam),(const LPRECT)GlobalLock((HGLOBAL)(lParam))),GlobalUnlock((HGLOBAL)(lParam)),0)
 
#define HANDLE_WM_SPOOLERSTATUS(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),(int)(short)LOWORD(lParam)),0)
 
#define HANDLE_WM_SYSCHAR(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(TCHAR)(wParam),(int)(short)LOWORD(lParam)),0)
 
#define HANDLE_WM_SYSCOLORCHANGE(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_SYSCOMMAND(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),(int)(short)LOWORD(lParam),(int)(short)HIWORD(lParam)),0)
 
#define HANDLE_WM_SYSDEADCHAR(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(TCHAR)(wParam),(int)(short)LOWORD(lParam)),0)
 
#define HANDLE_WM_SYSKEYDOWN(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),TRUE,(int)(short)LOWORD(lParam),(UINT)HIWORD(lParam)),0)
 
#define HANDLE_WM_SYSKEYUP(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam),FALSE,(int)(short)LOWORD(lParam),(UINT)HIWORD(lParam)),0)
 
#define HANDLE_WM_SYSTEMERROR(hwnd, wParam, lParam, fn)   0
 
#define HANDLE_WM_TIMECHANGE(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_TIMER(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(UINT)(wParam)),0)
 
#define HANDLE_WM_UNDO(hwnd, wParam, lParam, fn)   ((fn)(hwnd),0)
 
#define HANDLE_WM_VKEYTOITEM(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(int)(fn)((hwnd),(UINT)LOWORD(wParam),(HWND)(lParam),(int)(short)HIWORD(wParam))
 
#define HANDLE_WM_VSCROLL(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(lParam),(UINT)(LOWORD(wParam)),(int)(short)HIWORD(wParam)),0)
 
#define HANDLE_WM_VSCROLLCLIPBOARD(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(HWND)(wParam),(UINT)LOWORD(lParam),(int)(short)HIWORD(lParam)),0)
 
#define HANDLE_WM_WINDOWPOSCHANGED(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(const LPWINDOWPOS)(lParam)),0)
 
#define HANDLE_WM_WINDOWPOSCHANGING(hwnd, wParam, lParam, fn)   (LRESULT)(DWORD)(BOOL)(fn)((hwnd),(LPWINDOWPOS)(lParam))
 
#define HANDLE_WM_WININICHANGE(hwnd, wParam, lParam, fn)   ((fn)((hwnd),(LPCTSTR)(lParam)),0)
 
#define InsetRect(lprc, dx, dy)   InflateRect((lprc),-(dx),-(dy))
 
#define IntersectRgn(hrgnResult, hrgnA, hrgnB)   CombineRgn(hrgnResult,hrgnA,hrgnB,RGN_AND)
 
#define IsLButtonDown()   (GetKeyState(VK_LBUTTON) < 0)
 
#define IsMButtonDown()   (GetKeyState(VK_MBUTTON) < 0)
 
#define IsMaximized(hwnd)   IsZoomed(hwnd)
 
#define IsMinimized(hwnd)   IsIconic(hwnd)
 
#define IsRButtonDown()   (GetKeyState(VK_RBUTTON) < 0)
 
#define IsRestored(hwnd)   ((GetWindowStyle(hwnd) & (WS_MINIMIZE | WS_MAXIMIZE)) == 0)
 
#define ListBox_AddItemData(hwndCtl, data)   ((int)(DWORD)SNDMSG((hwndCtl),LB_ADDSTRING,0,(LPARAM)(data)))
 
#define ListBox_AddString(hwndCtl, lpsz)   ((int)(DWORD)SNDMSG((hwndCtl),LB_ADDSTRING,0,(LPARAM)(LPCTSTR)(lpsz)))
 
#define ListBox_DeleteString(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),LB_DELETESTRING,(WPARAM)(int)(index),0))
 
#define ListBox_Dir(hwndCtl, attrs, lpszFileSpec)   ((int)(DWORD)SNDMSG((hwndCtl),LB_DIR,(WPARAM)(UINT)(attrs),(LPARAM)(LPCTSTR)(lpszFileSpec)))
 
#define ListBox_Enable(hwndCtl, fEnable)   EnableWindow((hwndCtl),(fEnable))
 
#define ListBox_FindItemData(hwndCtl, indexStart, data)   ((int)(DWORD)SNDMSG((hwndCtl),LB_FINDSTRING,(WPARAM)(int)(indexStart),(LPARAM)(data)))
 
#define ListBox_FindString(hwndCtl, indexStart, lpszFind)   ((int)(DWORD)SNDMSG((hwndCtl),LB_FINDSTRING,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszFind)))
 
#define ListBox_FindStringExact(hwndCtl, indexStart, lpszFind)   ((int)(DWORD)SNDMSG((hwndCtl),LB_FINDSTRINGEXACT,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszFind)))
 
#define ListBox_GetCaretIndex(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETCARETINDEX,0,0))
 
#define ListBox_GetCount(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETCOUNT,0,0))
 
#define ListBox_GetCurSel(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETCURSEL,0,0))
 
#define ListBox_GetHorizontalExtent(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETHORIZONTALEXTENT,0,0))
 
#define ListBox_GetItemData(hwndCtl, index)   ((LRESULT)(UINT_PTR)SNDMSG((hwndCtl),LB_GETITEMDATA,(WPARAM)(int)(index),0))
 
#define ListBox_GetItemHeight(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETITEMHEIGHT,(WPARAM)(int)(index),0))
 
#define ListBox_GetItemRect(hwndCtl, index, lprc)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETITEMRECT,(WPARAM)(int)(index),(LPARAM)(RECT*)(lprc)))
 
#define ListBox_GetSel(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETSEL,(WPARAM)(int)(index),0))
 
#define ListBox_GetSelCount(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETSELCOUNT,0,0))
 
#define ListBox_GetSelItems(hwndCtl, cItems, lpItems)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETSELITEMS,(WPARAM)(int)(cItems),(LPARAM)(int*)(lpItems)))
 
#define ListBox_GetText(hwndCtl, index, lpszBuffer)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETTEXT,(WPARAM)(int)(index),(LPARAM)(LPCTSTR)(lpszBuffer)))
 
#define ListBox_GetTextLen(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETTEXTLEN,(WPARAM)(int)(index),0))
 
#define ListBox_GetTopIndex(hwndCtl)   ((int)(DWORD)SNDMSG((hwndCtl),LB_GETTOPINDEX,0,0))
 
#define ListBox_InsertItemData(hwndCtl, index, data)   ((int)(DWORD)SNDMSG((hwndCtl),LB_INSERTSTRING,(WPARAM)(int)(index),(LPARAM)(data)))
 
#define ListBox_InsertString(hwndCtl, index, lpsz)   ((int)(DWORD)SNDMSG((hwndCtl),LB_INSERTSTRING,(WPARAM)(int)(index),(LPARAM)(LPCTSTR)(lpsz)))
 
#define ListBox_ResetContent(hwndCtl)   ((BOOL)(DWORD)SNDMSG((hwndCtl),LB_RESETCONTENT,0,0))
 
#define ListBox_SelItemRange(hwndCtl, fSelect, first, last)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SELITEMRANGE,(WPARAM)(BOOL)(fSelect),MAKELPARAM((first),(last))))
 
#define ListBox_SelectItemData(hwndCtl, indexStart, data)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SELECTSTRING,(WPARAM)(int)(indexStart),(LPARAM)(data)))
 
#define ListBox_SelectString(hwndCtl, indexStart, lpszFind)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SELECTSTRING,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszFind)))
 
#define ListBox_SetCaretIndex(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SETCARETINDEX,(WPARAM)(int)(index),0))
 
#define ListBox_SetColumnWidth(hwndCtl, cxColumn)   ((void)SNDMSG((hwndCtl),LB_SETCOLUMNWIDTH,(WPARAM)(int)(cxColumn),0))
 
#define ListBox_SetCurSel(hwndCtl, index)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SETCURSEL,(WPARAM)(int)(index),0))
 
#define ListBox_SetHorizontalExtent(hwndCtl, cxExtent)   ((void)SNDMSG((hwndCtl),LB_SETHORIZONTALEXTENT,(WPARAM)(int)(cxExtent),0))
 
#define ListBox_SetItemData(hwndCtl, index, data)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SETITEMDATA,(WPARAM)(int)(index),(LPARAM)(data)))
 
#define ListBox_SetItemHeight(hwndCtl, index, cy)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SETITEMHEIGHT,(WPARAM)(int)(index),MAKELPARAM((cy),0)))
 
#define ListBox_SetSel(hwndCtl, fSelect, index)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SETSEL,(WPARAM)(BOOL)(fSelect),(LPARAM)(index)))
 
#define ListBox_SetTabStops(hwndCtl, cTabs, lpTabs)   ((BOOL)(DWORD)SNDMSG((hwndCtl),LB_SETTABSTOPS,(WPARAM)(int)(cTabs),(LPARAM)(int*)(lpTabs)))
 
#define ListBox_SetTopIndex(hwndCtl, indexTop)   ((int)(DWORD)SNDMSG((hwndCtl),LB_SETTOPINDEX,(WPARAM)(int)(indexTop),0))
 
#define MapWindowRect(hwndFrom, hwndTo, lprc)   MapWindowPoints((hwndFrom),(hwndTo),(POINT*)(lprc),2)
 
#define ScrollBar_Enable(hwndCtl, flags)   EnableScrollBar((hwndCtl),SB_CTL,(flags))
 
#define ScrollBar_GetPos(hwndCtl)   GetScrollPos((hwndCtl),SB_CTL)
 
#define ScrollBar_GetRange(hwndCtl, lpposMin, lpposMax)   GetScrollRange((hwndCtl),SB_CTL,(lpposMin),(lpposMax))
 
#define ScrollBar_SetPos(hwndCtl, pos, fRedraw)   SetScrollPos((hwndCtl),SB_CTL,(pos),(fRedraw))
 
#define ScrollBar_SetRange(hwndCtl, posMin, posMax, fRedraw)   SetScrollRange((hwndCtl),SB_CTL,(posMin),(posMax),(fRedraw))
 
#define ScrollBar_Show(hwndCtl, fShow)   ShowWindow((hwndCtl),(fShow) ? SW_SHOWNORMAL : SW_HIDE)
 
#define SelectBitmap(hdc, hbm)   ((HBITMAP)SelectObject((hdc),(HGDIOBJ)(HBITMAP)(hbm)))
 
#define SelectBrush(hdc, hbr)   ((HBRUSH)SelectObject((hdc),(HGDIOBJ)(HBRUSH)(hbr)))
 
#define SelectFont(hdc, hfont)   ((HFONT)SelectObject((hdc),(HGDIOBJ)(HFONT)(hfont)))
 
#define SelectPen(hdc, hpen)   ((HPEN)SelectObject((hdc),(HGDIOBJ)(HPEN)(hpen)))
 
#define SetDlgMsgResult(hwnd, msg, result)
 
#define SetWindowFont(hwnd, hfont, fRedraw)   FORWARD_WM_SETFONT((hwnd),(hfont),(fRedraw),SNDMSG)
 
#define SetWindowRedraw(hwnd, fRedraw)   ((void)SNDMSG(hwnd,WM_SETREDRAW,(WPARAM)(BOOL)(fRedraw),0))
 
#define Static_Enable(hwndCtl, fEnable)   EnableWindow((hwndCtl),(fEnable))
 
#define Static_GetIcon(hwndCtl, hIcon)   ((HICON)(UINT_PTR)SNDMSG((hwndCtl),STM_GETICON,0,0))
 
#define Static_GetText(hwndCtl, lpch, cchMax)   GetWindowText((hwndCtl),(lpch),(cchMax))
 
#define Static_GetTextLength(hwndCtl)   GetWindowTextLength(hwndCtl)
 
#define Static_SetIcon(hwndCtl, hIcon)   ((HICON)(UINT_PTR)SNDMSG((hwndCtl),STM_SETICON,(WPARAM)(HICON)(hIcon),0))
 
#define Static_SetText(hwndCtl, lpsz)   SetWindowText((hwndCtl),(lpsz))
 
#define SubclassDialog(hwndDlg, lpfn)   ((DLGPROC)SetWindowLongPtr(hwndDlg,DWLP_DLGPROC,(LPARAM)(DLGPROC)(lpfn)))
 
#define SubclassWindow(hwnd, lpfn)   ((WNDPROC)SetWindowLongPtr((hwnd),GWLP_WNDPROC,(LPARAM)(WNDPROC)(lpfn)))
 
#define SubtractRgn(hrgnResult, hrgnA, hrgnB)   CombineRgn(hrgnResult,hrgnA,hrgnB,RGN_DIFF)
 
#define UnionRgn(hrgnResult, hrgnA, hrgnB)   CombineRgn(hrgnResult,hrgnA,hrgnB,RGN_OR)
 
#define XorRgn(hrgnResult, hrgnA, hrgnB)   CombineRgn(hrgnResult,hrgnA,hrgnB,RGN_XOR)
 
#define _ffree   free
 
#define _fmalloc   malloc
 
#define _frealloc   realloc
 
#define _fmsize   _msize
 
#define _fmemcpy   memcpy
 
#define _fmemmove   memmove
 
#define _fmemset   memset
 
#define _fmemcmp   memcmp
 
#define _fmemchr   memchr
 
#define _fmemccpy   _memccpy
 
#define _fmemicmp   _memicmp
 
#define _fstrcat   strcat
 
#define _fstrchr   strchr
 
#define _fstrcmp   strcmp
 
#define _fstrcpy   strcpy
 
#define _fstrcspn   strcspn
 
#define _fstrdup   _strdup
 
#define _fstricmp   _stricmp
 
#define _fstrlen   strlen
 
#define _fstrlwr   _strlwr
 
#define _fstrncat   strncat
 
#define _fstrncmp   strncmp
 
#define _fstrncpy   strncpy
 
#define _fstrnicmp   _strnicmp
 
#define _fstrnset   _strnset
 
#define _fstrpbrk   strpbrk
 
#define _fstrrchr   strrchr
 
#define _fstrrev   _strrev
 
#define _fstrset   _strset
 
#define _fstrspn   strspn
 
#define _fstrstr   strstr
 
#define _fstrtok   strtok
 
#define _fstrupr   _strupr
 
#define hmemcpy   MoveMemory
 

Macro Definition Documentation

◆ _ffree

#define _ffree   free

Definition at line 548 of file windowsx.h.

◆ _fmalloc

#define _fmalloc   malloc

Definition at line 549 of file windowsx.h.

◆ _fmemccpy

#define _fmemccpy   _memccpy

Definition at line 558 of file windowsx.h.

◆ _fmemchr

#define _fmemchr   memchr

Definition at line 557 of file windowsx.h.

◆ _fmemcmp

#define _fmemcmp   memcmp

Definition at line 556 of file windowsx.h.

◆ _fmemcpy

#define _fmemcpy   memcpy

Definition at line 553 of file windowsx.h.

◆ _fmemicmp

#define _fmemicmp   _memicmp

Definition at line 559 of file windowsx.h.

◆ _fmemmove

#define _fmemmove   memmove

Definition at line 554 of file windowsx.h.

◆ _fmemset

#define _fmemset   memset

Definition at line 555 of file windowsx.h.

◆ _fmsize

#define _fmsize   _msize

Definition at line 551 of file windowsx.h.

◆ _frealloc

#define _frealloc   realloc

Definition at line 550 of file windowsx.h.

◆ _fstrcat

#define _fstrcat   strcat

Definition at line 561 of file windowsx.h.

◆ _fstrchr

#define _fstrchr   strchr

Definition at line 562 of file windowsx.h.

◆ _fstrcmp

#define _fstrcmp   strcmp

Definition at line 563 of file windowsx.h.

◆ _fstrcpy

#define _fstrcpy   strcpy

Definition at line 564 of file windowsx.h.

◆ _fstrcspn

#define _fstrcspn   strcspn

Definition at line 565 of file windowsx.h.

◆ _fstrdup

#define _fstrdup   _strdup

Definition at line 566 of file windowsx.h.

◆ _fstricmp

#define _fstricmp   _stricmp

Definition at line 567 of file windowsx.h.

◆ _fstrlen

#define _fstrlen   strlen

Definition at line 568 of file windowsx.h.

◆ _fstrlwr

#define _fstrlwr   _strlwr

Definition at line 569 of file windowsx.h.

◆ _fstrncat

#define _fstrncat   strncat

Definition at line 570 of file windowsx.h.

◆ _fstrncmp

#define _fstrncmp   strncmp

Definition at line 571 of file windowsx.h.

◆ _fstrncpy

#define _fstrncpy   strncpy

Definition at line 572 of file windowsx.h.

◆ _fstrnicmp

#define _fstrnicmp   _strnicmp

Definition at line 573 of file windowsx.h.

◆ _fstrnset

#define _fstrnset   _strnset

Definition at line 574 of file windowsx.h.

◆ _fstrpbrk

#define _fstrpbrk   strpbrk

Definition at line 575 of file windowsx.h.

◆ _fstrrchr

#define _fstrrchr   strrchr

Definition at line 576 of file windowsx.h.

◆ _fstrrev

#define _fstrrev   _strrev

Definition at line 577 of file windowsx.h.

◆ _fstrset

#define _fstrset   _strset

Definition at line 578 of file windowsx.h.

◆ _fstrspn

#define _fstrspn   strspn

Definition at line 579 of file windowsx.h.

◆ _fstrstr

#define _fstrstr   strstr

Definition at line 580 of file windowsx.h.

◆ _fstrtok

#define _fstrtok   strtok

Definition at line 581 of file windowsx.h.

◆ _fstrupr

#define _fstrupr   _strupr

Definition at line 582 of file windowsx.h.

◆ Button_Enable

#define Button_Enable (   hwndCtl,
  fEnable 
)    EnableWindow((hwndCtl),(fEnable))

Definition at line 30 of file windowsx.h.

◆ Button_GetCheck

#define Button_GetCheck (   hwndCtl)    ((int)(DWORD)SNDMSG((hwndCtl),BM_GETCHECK,0,0))

Definition at line 31 of file windowsx.h.

◆ Button_GetState

#define Button_GetState (   hwndCtl)    ((int)(DWORD)SNDMSG((hwndCtl),BM_GETSTATE,0,0))

Definition at line 32 of file windowsx.h.

◆ Button_GetText

#define Button_GetText (   hwndCtl,
  lpch,
  cchMax 
)    GetWindowText((hwndCtl),(lpch),(cchMax))

Definition at line 33 of file windowsx.h.

◆ Button_GetTextLength

#define Button_GetTextLength (   hwndCtl)    GetWindowTextLength(hwndCtl)

Definition at line 34 of file windowsx.h.

◆ Button_SetCheck

#define Button_SetCheck (   hwndCtl,
  check 
)    ((void)SNDMSG((hwndCtl),BM_SETCHECK,(WPARAM)(int)(check),0))

Definition at line 35 of file windowsx.h.

◆ Button_SetState

#define Button_SetState (   hwndCtl,
  state 
)    ((UINT)(DWORD)SNDMSG((hwndCtl),BM_SETSTATE,(WPARAM)(int)(state),0))

Definition at line 36 of file windowsx.h.

◆ Button_SetStyle

#define Button_SetStyle (   hwndCtl,
  style,
  fRedraw 
)    ((void)SNDMSG((hwndCtl),BM_SETSTYLE,(WPARAM)LOWORD(style),MAKELPARAM(((fRedraw) ? TRUE : FALSE),0)))

Definition at line 37 of file windowsx.h.

◆ Button_SetText

#define Button_SetText (   hwndCtl,
  lpsz 
)    SetWindowText((hwndCtl),(lpsz))

Definition at line 38 of file windowsx.h.

◆ CheckDefDlgRecursion

#define CheckDefDlgRecursion (   pfRecursion)    if (*(pfRecursion)) {*(pfRecursion) = FALSE; return FALSE; }

Definition at line 39 of file windowsx.h.

◆ ComboBox_AddItemData

#define ComboBox_AddItemData (   hwndCtl,
  data 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_ADDSTRING,0,(LPARAM)(data)))

Definition at line 40 of file windowsx.h.

◆ ComboBox_AddString

#define ComboBox_AddString (   hwndCtl,
  lpsz 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_ADDSTRING,0,(LPARAM)(LPCTSTR)(lpsz)))

Definition at line 41 of file windowsx.h.

◆ ComboBox_DeleteString

#define ComboBox_DeleteString (   hwndCtl,
  index 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_DELETESTRING,(WPARAM)(int)(index),0))

Definition at line 42 of file windowsx.h.

◆ ComboBox_Dir

#define ComboBox_Dir (   hwndCtl,
  attrs,
  lpszFileSpec 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_DIR,(WPARAM)(UINT)(attrs),(LPARAM)(LPCTSTR)(lpszFileSpec)))

Definition at line 43 of file windowsx.h.

◆ ComboBox_Enable

#define ComboBox_Enable (   hwndCtl,
  fEnable 
)    EnableWindow((hwndCtl),(fEnable))

Definition at line 44 of file windowsx.h.

◆ ComboBox_FindItemData

#define ComboBox_FindItemData (   hwndCtl,
  indexStart,
  data 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_FINDSTRING,(WPARAM)(int)(indexStart),(LPARAM)(data)))

Definition at line 45 of file windowsx.h.

◆ ComboBox_FindString

#define ComboBox_FindString (   hwndCtl,
  indexStart,
  lpszFind 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_FINDSTRING,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszFind)))

Definition at line 46 of file windowsx.h.

◆ ComboBox_FindStringExact

#define ComboBox_FindStringExact (   hwndCtl,
  indexStart,
  lpszFind 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_FINDSTRINGEXACT,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszFind)))

Definition at line 47 of file windowsx.h.

◆ ComboBox_GetCount

#define ComboBox_GetCount (   hwndCtl)    ((int)(DWORD)SNDMSG((hwndCtl),CB_GETCOUNT,0,0))

Definition at line 48 of file windowsx.h.

◆ ComboBox_GetCurSel

#define ComboBox_GetCurSel (   hwndCtl)    ((int)(DWORD)SNDMSG((hwndCtl),CB_GETCURSEL,0,0))

Definition at line 49 of file windowsx.h.

◆ ComboBox_GetDroppedControlRect

#define ComboBox_GetDroppedControlRect (   hwndCtl,
  lprc 
)    ((void)SNDMSG((hwndCtl),CB_GETDROPPEDCONTROLRECT,0,(LPARAM)(RECT*)(lprc)))

Definition at line 50 of file windowsx.h.

◆ ComboBox_GetDroppedState

#define ComboBox_GetDroppedState (   hwndCtl)    ((BOOL)(DWORD)SNDMSG((hwndCtl),CB_GETDROPPEDSTATE,0,0))

Definition at line 51 of file windowsx.h.

◆ ComboBox_GetEditSel

#define ComboBox_GetEditSel (   hwndCtl)    ((DWORD)SNDMSG((hwndCtl),CB_GETEDITSEL,0,0))

Definition at line 52 of file windowsx.h.

◆ ComboBox_GetExtendedUI

#define ComboBox_GetExtendedUI (   hwndCtl)    ((UINT)(DWORD)SNDMSG((hwndCtl),CB_GETEXTENDEDUI,0,0))

Definition at line 53 of file windowsx.h.

◆ ComboBox_GetItemData

#define ComboBox_GetItemData (   hwndCtl,
  index 
)    ((LRESULT)(UINT_PTR)SNDMSG((hwndCtl),CB_GETITEMDATA,(WPARAM)(int)(index),0))

Definition at line 54 of file windowsx.h.

◆ ComboBox_GetItemHeight

#define ComboBox_GetItemHeight (   hwndCtl)    ((int)(DWORD)SNDMSG((hwndCtl),CB_GETITEMHEIGHT,0,0))

Definition at line 55 of file windowsx.h.

◆ ComboBox_GetLBText

#define ComboBox_GetLBText (   hwndCtl,
  index,
  lpszBuffer 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_GETLBTEXT,(WPARAM)(int)(index),(LPARAM)(LPCTSTR)(lpszBuffer)))

Definition at line 56 of file windowsx.h.

◆ ComboBox_GetLBTextLen

#define ComboBox_GetLBTextLen (   hwndCtl,
  index 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_GETLBTEXTLEN,(WPARAM)(int)(index),0))

Definition at line 57 of file windowsx.h.

◆ ComboBox_GetText

#define ComboBox_GetText (   hwndCtl,
  lpch,
  cchMax 
)    GetWindowText((hwndCtl),(lpch),(cchMax))

Definition at line 58 of file windowsx.h.

◆ ComboBox_GetTextLength

#define ComboBox_GetTextLength (   hwndCtl)    GetWindowTextLength(hwndCtl)

Definition at line 59 of file windowsx.h.

◆ ComboBox_InsertItemData

#define ComboBox_InsertItemData (   hwndCtl,
  index,
  data 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_INSERTSTRING,(WPARAM)(int)(index),(LPARAM)(data)))

Definition at line 60 of file windowsx.h.

◆ ComboBox_InsertString

#define ComboBox_InsertString (   hwndCtl,
  index,
  lpsz 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_INSERTSTRING,(WPARAM)(int)(index),(LPARAM)(LPCTSTR)(lpsz)))

Definition at line 61 of file windowsx.h.

◆ ComboBox_LimitText

#define ComboBox_LimitText (   hwndCtl,
  cchLimit 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_LIMITTEXT,(WPARAM)(int)(cchLimit),0))

Definition at line 62 of file windowsx.h.

◆ ComboBox_ResetContent

#define ComboBox_ResetContent (   hwndCtl)    ((int)(DWORD)SNDMSG((hwndCtl),CB_RESETCONTENT,0,0))

Definition at line 63 of file windowsx.h.

◆ ComboBox_SelectItemData

#define ComboBox_SelectItemData (   hwndCtl,
  indexStart,
  data 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_SELECTSTRING,(WPARAM)(int)(indexStart),(LPARAM)(data)))

Definition at line 64 of file windowsx.h.

◆ ComboBox_SelectString

#define ComboBox_SelectString (   hwndCtl,
  indexStart,
  lpszSelect 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_SELECTSTRING,(WPARAM)(int)(indexStart),(LPARAM)(LPCTSTR)(lpszSelect)))

Definition at line 65 of file windowsx.h.

◆ ComboBox_SetCurSel

#define ComboBox_SetCurSel (   hwndCtl,
  index 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_SETCURSEL,(WPARAM)(int)(index),0))

Definition at line 66 of file windowsx.h.

◆ ComboBox_SetEditSel

#define ComboBox_SetEditSel (   hwndCtl,
  ichStart,
  ichEnd 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_SETEDITSEL,0,MAKELPARAM((ichStart),(ichEnd))))

Definition at line 67 of file windowsx.h.

◆ ComboBox_SetExtendedUI

#define ComboBox_SetExtendedUI (   hwndCtl,
  flags 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_SETEXTENDEDUI,(WPARAM)(UINT)(flags),0))

Definition at line 68 of file windowsx.h.

◆ ComboBox_SetItemData

#define ComboBox_SetItemData (   hwndCtl,
  index,
  data 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_SETITEMDATA,(WPARAM)(int)(index),(LPARAM)(data)))

Definition at line 69 of file windowsx.h.

◆ ComboBox_SetItemHeight

#define ComboBox_SetItemHeight (   hwndCtl,
  index,
  cyItem 
)    ((int)(DWORD)SNDMSG((hwndCtl),CB_SETITEMHEIGHT,(WPARAM)(int)(index),(LPARAM)(int)cyItem))

Definition at line 70 of file windowsx.h.

◆ ComboBox_SetText

#define ComboBox_SetText (   hwndCtl,
  lpsz 
)    SetWindowText((hwndCtl),(lpsz))

Definition at line 71 of file windowsx.h.

◆ ComboBox_ShowDropdown

#define ComboBox_ShowDropdown (   hwndCtl,
  fShow 
)    ((BOOL)(DWORD)SNDMSG((hwndCtl),CB_SHOWDROPDOWN,(WPARAM)(BOOL)(fShow),0))

Definition at line 72 of file windowsx.h.

◆ CopyRgn

#define CopyRgn (   hrgnDst,
  hrgnSrc 
)    CombineRgn(hrgnDst,hrgnSrc,0,RGN_COPY)

Definition at line 73 of file windowsx.h.

◆ DECLARE_HANDLE32

#define DECLARE_HANDLE32   DECLARE_HANDLE

Definition at line 74 of file windowsx.h.

◆ DefDlgProcEx

#define DefDlgProcEx (   hwnd,
  msg,
  wParam,
  lParam,
  pfRecursion 
)    (*(pfRecursion) = TRUE,DefDlgProc(hwnd,msg,wParam,lParam))

Definition at line 75 of file windowsx.h.

◆ DeleteBitmap

#define DeleteBitmap (   hbm)    DeleteObject((HGDIOBJ)(HBITMAP)(hbm))

Definition at line 76 of file windowsx.h.

◆ DeleteBrush

#define DeleteBrush (   hbr)    DeleteObject((HGDIOBJ)(HBRUSH)(hbr))

Definition at line 77 of file windowsx.h.

◆ DeleteFont

#define DeleteFont (   hfont)    DeleteObject((HGDIOBJ)(HFONT)(hfont))

Definition at line 78 of file windowsx.h.

◆ DeletePalette

#define DeletePalette (   hpal)    DeleteObject((HGDIOBJ)(HPALETTE)(hpal))

Definition at line 79 of file windowsx.h.

◆ DeletePen

#define DeletePen (   hpen)    DeleteObject((HGDIOBJ)(HPEN)(hpen))

Definition at line 80 of file windowsx.h.

◆ DeleteRgn

#define DeleteRgn (   hrgn)    DeleteObject((HGDIOBJ)(HRGN)(hrgn))

Definition at line 81 of file windowsx.h.

◆ Edit_CanUndo

#define Edit_CanUndo (   hwndCtl)    ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_CANUNDO,0,0))

Definition at line 82 of file windowsx.h.

◆ Edit_EmptyUndoBuffer

#define Edit_EmptyUndoBuffer (   hwndCtl)    ((void)SNDMSG((hwndCtl),EM_EMPTYUNDOBUFFER,0,0))

Definition at line 83 of file windowsx.h.

◆ Edit_Enable

#define Edit_Enable (   hwndCtl,
  fEnable 
)    EnableWindow((hwndCtl),(fEnable))

Definition at line 84 of file windowsx.h.

◆ Edit_FmtLines

#define Edit_FmtLines (   hwndCtl,
  fAddEOL 
)    ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_FMTLINES,(WPARAM)(BOOL)(fAddEOL),0))

Definition at line 85 of file windowsx.h.

◆ Edit_GetFirstVisibleLine

#define Edit_GetFirstVisibleLine (   hwndCtl)    ((int)(DWORD)SNDMSG((hwndCtl),EM_GETFIRSTVISIBLELINE,0,0))

Definition at line 86 of file windowsx.h.

◆ Edit_GetHandle

#define Edit_GetHandle (   hwndCtl)    ((HLOCAL)(UINT_PTR)SNDMSG((hwndCtl),EM_GETHANDLE,0,0))

Definition at line 87 of file windowsx.h.

◆ Edit_GetLine

#define Edit_GetLine (   hwndCtl,
  line,
  lpch,
  cchMax 
)    ((*((int*)(lpch)) = (cchMax)),((int)(DWORD)SNDMSG((hwndCtl),EM_GETLINE,(WPARAM)(int)(line),(LPARAM)(LPTSTR)(lpch))))

Definition at line 88 of file windowsx.h.

◆ Edit_GetLineCount

#define Edit_GetLineCount (   hwndCtl)    ((int)(DWORD)SNDMSG((hwndCtl),EM_GETLINECOUNT,0,0))

Definition at line 89 of file windowsx.h.

◆ Edit_GetModify

#define Edit_GetModify (   hwndCtl)    ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_GETMODIFY,0,0))

Definition at line 90 of file windowsx.h.

◆ Edit_GetPasswordChar

#define Edit_GetPasswordChar (   hwndCtl)    ((TCHAR)(DWORD)SNDMSG((hwndCtl),EM_GETPASSWORDCHAR,0,0))

Definition at line 91 of file windowsx.h.

◆ Edit_GetRect

#define Edit_GetRect (   hwndCtl,
  lprc 
)    ((void)SNDMSG((hwndCtl),EM_GETRECT,0,(LPARAM)(RECT*)(lprc)))

Definition at line 92 of file windowsx.h.

◆ Edit_GetSel

#define Edit_GetSel (   hwndCtl)    ((DWORD)SNDMSG((hwndCtl),EM_GETSEL,0,0))

Definition at line 93 of file windowsx.h.

◆ Edit_GetText

#define Edit_GetText (   hwndCtl,
  lpch,
  cchMax 
)    GetWindowText((hwndCtl),(lpch),(cchMax))

Definition at line 94 of file windowsx.h.

◆ Edit_GetTextLength

#define Edit_GetTextLength (   hwndCtl)    GetWindowTextLength(hwndCtl)

Definition at line 95 of file windowsx.h.

◆ Edit_GetWordBreakProc

#define Edit_GetWordBreakProc (   hwndCtl)    ((EDITWORDBREAKPROC)SNDMSG((hwndCtl),EM_GETWORDBREAKPROC,0,0))

Definition at line 96 of file windowsx.h.

◆ Edit_LimitText

#define Edit_LimitText (   hwndCtl,
  cchMax 
)    ((void)SNDMSG((hwndCtl),EM_LIMITTEXT,(WPARAM)(cchMax),0))

Definition at line 97 of file windowsx.h.

◆ Edit_LineFromChar

#define Edit_LineFromChar (   hwndCtl,
  ich 
)    ((int)(DWORD)SNDMSG((hwndCtl),EM_LINEFROMCHAR,(WPARAM)(int)(ich),0))

Definition at line 98 of file windowsx.h.

◆ Edit_LineIndex

#define Edit_LineIndex (   hwndCtl,
  line 
)    ((int)(DWORD)SNDMSG((hwndCtl),EM_LINEINDEX,(WPARAM)(int)(line),0))

Definition at line 99 of file windowsx.h.

◆ Edit_LineLength

#define Edit_LineLength (   hwndCtl,
  line 
)    ((int)(DWORD)SNDMSG((hwndCtl),EM_LINELENGTH,(WPARAM)(int)(line),0))

Definition at line 100 of file windowsx.h.

◆ Edit_ReplaceSel

#define Edit_ReplaceSel (   hwndCtl,
  lpszReplace 
)    ((void)SNDMSG((hwndCtl),EM_REPLACESEL,0,(LPARAM)(LPCTSTR)(lpszReplace)))

Definition at line 101 of file windowsx.h.

◆ Edit_Scroll

#define Edit_Scroll (   hwndCtl,
  dv,
  dh 
)    ((void)SNDMSG((hwndCtl),EM_LINESCROLL,(WPARAM)(dh),(LPARAM)(dv)))

Definition at line 102 of file windowsx.h.

◆ Edit_ScrollCaret

#define Edit_ScrollCaret (   hwndCtl)    ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_SCROLLCARET,0,0))

Definition at line 103 of file windowsx.h.

◆ Edit_SetHandle

#define Edit_SetHandle (   hwndCtl,
  h 
)    ((void)SNDMSG((hwndCtl),EM_SETHANDLE,(WPARAM)(UINT_PTR)(HLOCAL)(h),0))

Definition at line 104 of file windowsx.h.

◆ Edit_SetModify

#define Edit_SetModify (   hwndCtl,
  fModified 
)    ((void)SNDMSG((hwndCtl),EM_SETMODIFY,(WPARAM)(UINT)(fModified),0))

Definition at line 105 of file windowsx.h.

◆ Edit_SetPasswordChar

#define Edit_SetPasswordChar (   hwndCtl,
  ch 
)    ((void)SNDMSG((hwndCtl),EM_SETPASSWORDCHAR,(WPARAM)(UINT)(ch),0))

Definition at line 106 of file windowsx.h.

◆ Edit_SetReadOnly

#define Edit_SetReadOnly (   hwndCtl,
  fReadOnly 
)    ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_SETREADONLY,(WPARAM)(BOOL)(fReadOnly),0))

Definition at line 107 of file windowsx.h.

◆ Edit_SetRect

#define Edit_SetRect (   hwndCtl,
  lprc 
)    ((void)SNDMSG((hwndCtl),EM_SETRECT,0,(LPARAM)(const RECT*)(lprc)))

Definition at line 108 of file windowsx.h.

◆ Edit_SetRectNoPaint

#define Edit_SetRectNoPaint (   hwndCtl,
  lprc 
)    ((void)SNDMSG((hwndCtl),EM_SETRECTNP,0,(LPARAM)(const RECT*)(lprc)))

Definition at line 109 of file windowsx.h.

◆ Edit_SetSel

#define Edit_SetSel (   hwndCtl,
  ichStart,
  ichEnd 
)    ((void)SNDMSG((hwndCtl),EM_SETSEL,(ichStart),(ichEnd)))

Definition at line 110 of file windowsx.h.

◆ Edit_SetTabStops

#define Edit_SetTabStops (   hwndCtl,
  cTabs,
  lpTabs 
)    ((void)SNDMSG((hwndCtl),EM_SETTABSTOPS,(WPARAM)(int)(cTabs),(LPARAM)(const int*)(lpTabs)))

Definition at line 111 of file windowsx.h.

◆ Edit_SetText

#define Edit_SetText (   hwndCtl,
  lpsz 
)    SetWindowText((hwndCtl),(lpsz))

Definition at line 112 of file windowsx.h.

◆ Edit_SetWordBreakProc

#define Edit_SetWordBreakProc (   hwndCtl,
  lpfnWordBreak 
)    ((void)SNDMSG((hwndCtl),EM_SETWORDBREAKPROC,0,(LPARAM)(EDITWORDBREAKPROC)(lpfnWordBreak)))

Definition at line 113 of file windowsx.h.

◆ Edit_Undo

#define Edit_Undo (   hwndCtl)    ((BOOL)(DWORD)SNDMSG((hwndCtl),EM_UNDO,0,0))

Definition at line 114 of file windowsx.h.

◆ FORWARD_WM_ACTIVATE

#define FORWARD_WM_ACTIVATE (   hwnd,
  state,
  hwndActDeact,
  fMinimized,
  fn 
)    (void)(fn)((hwnd),WM_ACTIVATE,MAKEWPARAM((state),(fMinimized)),(LPARAM)(HWND)(hwndActDeact))

Definition at line 115 of file windowsx.h.

◆ FORWARD_WM_ACTIVATEAPP

#define FORWARD_WM_ACTIVATEAPP (   hwnd,
  fActivate,
  dwThreadId,
  fn 
)    (void)(fn)((hwnd),WM_ACTIVATEAPP,(WPARAM)(BOOL)(fActivate),(LPARAM)(dwThreadId))

Definition at line 116 of file windowsx.h.

◆ FORWARD_WM_ASKCBFORMATNAME

#define FORWARD_WM_ASKCBFORMATNAME (   hwnd,
  cchMax,
  rgchName,
  fn 
)    (void)(fn)((hwnd),WM_ASKCBFORMATNAME,(WPARAM)(int)(cchMax),(LPARAM)(rgchName))

Definition at line 117 of file windowsx.h.

◆ FORWARD_WM_CANCELMODE

#define FORWARD_WM_CANCELMODE (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_CANCELMODE,0,0)

Definition at line 118 of file windowsx.h.

◆ FORWARD_WM_CHANGECBCHAIN

#define FORWARD_WM_CHANGECBCHAIN (   hwnd,
  hwndRemove,
  hwndNext,
  fn 
)    (void)(fn)((hwnd),WM_CHANGECBCHAIN,(WPARAM)(HWND)(hwndRemove),(LPARAM)(HWND)(hwndNext))

Definition at line 119 of file windowsx.h.

◆ FORWARD_WM_CHAR

#define FORWARD_WM_CHAR (   hwnd,
  ch,
  cRepeat,
  fn 
)    (void)(fn)((hwnd),WM_CHAR,(WPARAM)(TCHAR)(ch),MAKELPARAM((cRepeat),0))

Definition at line 120 of file windowsx.h.

◆ FORWARD_WM_CHARTOITEM

#define FORWARD_WM_CHARTOITEM (   hwnd,
  ch,
  hwndListBox,
  iCaret,
  fn 
)    (int)(DWORD)(fn)((hwnd),WM_CHARTOITEM,MAKEWPARAM((UINT)(iCaret),(UINT)(ch)),(LPARAM)(hwndListBox))

Definition at line 121 of file windowsx.h.

◆ FORWARD_WM_CHILDACTIVATE

#define FORWARD_WM_CHILDACTIVATE (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_CHILDACTIVATE,0,0)

Definition at line 122 of file windowsx.h.

◆ FORWARD_WM_CLEAR

#define FORWARD_WM_CLEAR (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_CLEAR,0,0)

Definition at line 123 of file windowsx.h.

◆ FORWARD_WM_CLOSE

#define FORWARD_WM_CLOSE (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_CLOSE,0,0)

Definition at line 124 of file windowsx.h.

◆ FORWARD_WM_COMMAND

#define FORWARD_WM_COMMAND (   hwnd,
  id,
  hwndCtl,
  codeNotify,
  fn 
)    (void)(fn)((hwnd),WM_COMMAND,MAKEWPARAM((UINT)(id),(UINT)(codeNotify)),(LPARAM)(HWND)(hwndCtl))

Definition at line 125 of file windowsx.h.

◆ FORWARD_WM_COMMNOTIFY

#define FORWARD_WM_COMMNOTIFY (   hwnd,
  cid,
  flags,
  fn 
)    (void)(fn)((hwnd),WM_COMMNOTIFY,(WPARAM)(cid),MAKELPARAM((flags),0))

Definition at line 126 of file windowsx.h.

◆ FORWARD_WM_COMPACTING

#define FORWARD_WM_COMPACTING (   hwnd,
  compactRatio,
  fn 
)    (void)(fn)((hwnd),WM_COMPACTING,(WPARAM)(UINT)(compactRatio),0)

Definition at line 127 of file windowsx.h.

◆ FORWARD_WM_COMPAREITEM

#define FORWARD_WM_COMPAREITEM (   hwnd,
  lpCompareItem,
  fn 
)    (int)(DWORD)(fn)((hwnd),WM_COMPAREITEM,(WPARAM)(((const COMPAREITEMSTRUCT*)(lpCompareItem))->CtlID),(LPARAM)(const COMPAREITEMSTRUCT*)(lpCompareItem))

Definition at line 128 of file windowsx.h.

◆ FORWARD_WM_COPY

#define FORWARD_WM_COPY (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_COPY,0,0)

Definition at line 129 of file windowsx.h.

◆ FORWARD_WM_CREATE

#define FORWARD_WM_CREATE (   hwnd,
  lpCreateStruct,
  fn 
)    (BOOL)(DWORD)(fn)((hwnd),WM_CREATE,0,(LPARAM)(LPCREATESTRUCT)(lpCreateStruct))

Definition at line 130 of file windowsx.h.

◆ FORWARD_WM_CTLCOLORBTN

#define FORWARD_WM_CTLCOLORBTN (   hwnd,
  hdc,
  hwndChild,
  fn 
)    (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORBTN,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))

Definition at line 131 of file windowsx.h.

◆ FORWARD_WM_CTLCOLORDLG

#define FORWARD_WM_CTLCOLORDLG (   hwnd,
  hdc,
  hwndChild,
  fn 
)    (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORDLG,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))

Definition at line 132 of file windowsx.h.

◆ FORWARD_WM_CTLCOLOREDIT

#define FORWARD_WM_CTLCOLOREDIT (   hwnd,
  hdc,
  hwndChild,
  fn 
)    (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLOREDIT,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))

Definition at line 133 of file windowsx.h.

◆ FORWARD_WM_CTLCOLORLISTBOX

#define FORWARD_WM_CTLCOLORLISTBOX (   hwnd,
  hdc,
  hwndChild,
  fn 
)    (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORLISTBOX,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))

Definition at line 134 of file windowsx.h.

◆ FORWARD_WM_CTLCOLORMSGBOX

#define FORWARD_WM_CTLCOLORMSGBOX (   hwnd,
  hdc,
  hwndChild,
  fn 
)    (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORMSGBOX,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))

Definition at line 135 of file windowsx.h.

◆ FORWARD_WM_CTLCOLORSCROLLBAR

#define FORWARD_WM_CTLCOLORSCROLLBAR (   hwnd,
  hdc,
  hwndChild,
  fn 
)    (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORSCROLLBAR,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))

Definition at line 136 of file windowsx.h.

◆ FORWARD_WM_CTLCOLORSTATIC

#define FORWARD_WM_CTLCOLORSTATIC (   hwnd,
  hdc,
  hwndChild,
  fn 
)    (HBRUSH)(UINT_PTR)(fn)((hwnd),WM_CTLCOLORSTATIC,(WPARAM)(HDC)(hdc),(LPARAM)(HWND)(hwndChild))

Definition at line 137 of file windowsx.h.

◆ FORWARD_WM_CUT

#define FORWARD_WM_CUT (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_CUT,0,0)

Definition at line 138 of file windowsx.h.

◆ FORWARD_WM_DEADCHAR

#define FORWARD_WM_DEADCHAR (   hwnd,
  ch,
  cRepeat,
  fn 
)    (void)(fn)((hwnd),WM_DEADCHAR,(WPARAM)(TCHAR)(ch),MAKELPARAM((cRepeat),0))

Definition at line 139 of file windowsx.h.

◆ FORWARD_WM_DELETEITEM

#define FORWARD_WM_DELETEITEM (   hwnd,
  lpDeleteItem,
  fn 
)    (void)(fn)((hwnd),WM_DELETEITEM,(WPARAM)(((const DELETEITEMSTRUCT*)(lpDeleteItem))->CtlID),(LPARAM)(const DELETEITEMSTRUCT*)(lpDeleteItem))

Definition at line 140 of file windowsx.h.

◆ FORWARD_WM_DESTROY

#define FORWARD_WM_DESTROY (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_DESTROY,0,0)

Definition at line 141 of file windowsx.h.

◆ FORWARD_WM_DESTROYCLIPBOARD

#define FORWARD_WM_DESTROYCLIPBOARD (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_DESTROYCLIPBOARD,0,0)

Definition at line 142 of file windowsx.h.

◆ FORWARD_WM_DEVMODECHANGE

#define FORWARD_WM_DEVMODECHANGE (   hwnd,
  lpszDeviceName,
  fn 
)    (void)(fn)((hwnd),WM_DEVMODECHANGE,0,(LPARAM)(LPCTSTR)(lpszDeviceName))

Definition at line 143 of file windowsx.h.

◆ FORWARD_WM_DRAWCLIPBOARD

#define FORWARD_WM_DRAWCLIPBOARD (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_DRAWCLIPBOARD,0,0)

Definition at line 144 of file windowsx.h.

◆ FORWARD_WM_DRAWITEM

#define FORWARD_WM_DRAWITEM (   hwnd,
  lpDrawItem,
  fn 
)    (void)(fn)((hwnd),WM_DRAWITEM,(WPARAM)(((const DRAWITEMSTRUCT*)lpDrawItem)->CtlID),(LPARAM)(const DRAWITEMSTRUCT*)(lpDrawItem))

Definition at line 145 of file windowsx.h.

◆ FORWARD_WM_DROPFILES

#define FORWARD_WM_DROPFILES (   hwnd,
  hdrop,
  fn 
)    (void)(fn)((hwnd),WM_DROPFILES,(WPARAM)(HDROP)(hdrop),0)

Definition at line 146 of file windowsx.h.

◆ FORWARD_WM_ENABLE

#define FORWARD_WM_ENABLE (   hwnd,
  fEnable,
  fn 
)    (void)(fn)((hwnd),WM_ENABLE,(WPARAM)(BOOL)(fEnable),0)

Definition at line 147 of file windowsx.h.

◆ FORWARD_WM_ENDSESSION

#define FORWARD_WM_ENDSESSION (   hwnd,
  fEnding,
  fn 
)    (void)(fn)((hwnd),WM_ENDSESSION,(WPARAM)(BOOL)(fEnding),0)

Definition at line 148 of file windowsx.h.

◆ FORWARD_WM_ENTERIDLE

#define FORWARD_WM_ENTERIDLE (   hwnd,
  source,
  hwndSource,
  fn 
)    (void)(fn)((hwnd),WM_ENTERIDLE,(WPARAM)(UINT)(source),(LPARAM)(HWND)(hwndSource))

Definition at line 149 of file windowsx.h.

◆ FORWARD_WM_ERASEBKGND

#define FORWARD_WM_ERASEBKGND (   hwnd,
  hdc,
  fn 
)    (BOOL)(DWORD)(fn)((hwnd),WM_ERASEBKGND,(WPARAM)(HDC)(hdc),0)

Definition at line 150 of file windowsx.h.

◆ FORWARD_WM_FONTCHANGE

#define FORWARD_WM_FONTCHANGE (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_FONTCHANGE,0,0)

Definition at line 151 of file windowsx.h.

◆ FORWARD_WM_GETDLGCODE

#define FORWARD_WM_GETDLGCODE (   hwnd,
  lpmsg,
  fn 
)    (UINT)(DWORD)(fn)((hwnd),WM_GETDLGCODE,(lpmsg ? lpmsg->wParam : 0),(LPARAM)(LPMSG)(lpmsg))

Definition at line 152 of file windowsx.h.

◆ FORWARD_WM_GETFONT

#define FORWARD_WM_GETFONT (   hwnd,
  fn 
)    (HFONT)(UINT_PTR)(fn)((hwnd),WM_GETFONT,0,0)

Definition at line 153 of file windowsx.h.

◆ FORWARD_WM_GETMINMAXINFO

#define FORWARD_WM_GETMINMAXINFO (   hwnd,
  lpMinMaxInfo,
  fn 
)    (void)(fn)((hwnd),WM_GETMINMAXINFO,0,(LPARAM)(LPMINMAXINFO)(lpMinMaxInfo))

Definition at line 154 of file windowsx.h.

◆ FORWARD_WM_GETTEXT

#define FORWARD_WM_GETTEXT (   hwnd,
  cchTextMax,
  lpszText,
  fn 
)    (int)(DWORD)(fn)((hwnd),WM_GETTEXT,(WPARAM)(int)(cchTextMax),(LPARAM)(LPTSTR)(lpszText))

Definition at line 155 of file windowsx.h.

◆ FORWARD_WM_GETTEXTLENGTH

#define FORWARD_WM_GETTEXTLENGTH (   hwnd,
  fn 
)    (int)(DWORD)(fn)((hwnd),WM_GETTEXTLENGTH,0,0)

Definition at line 156 of file windowsx.h.

◆ FORWARD_WM_HSCROLL

#define FORWARD_WM_HSCROLL (   hwnd,
  hwndCtl,
  code,
  pos,
  fn 
)    (void)(fn)((hwnd),WM_HSCROLL,MAKEWPARAM((UINT)(int)(code),(UINT)(int)(pos)),(LPARAM)(HWND)(hwndCtl))

Definition at line 157 of file windowsx.h.

◆ FORWARD_WM_HSCROLLCLIPBOARD

#define FORWARD_WM_HSCROLLCLIPBOARD (   hwnd,
  hwndCBViewer,
  code,
  pos,
  fn 
)    (void)(fn)((hwnd),WM_HSCROLLCLIPBOARD,(WPARAM)(HWND)(hwndCBViewer),MAKELPARAM((code),(pos)))

Definition at line 158 of file windowsx.h.

◆ FORWARD_WM_ICONERASEBKGND

#define FORWARD_WM_ICONERASEBKGND (   hwnd,
  hdc,
  fn 
)    (BOOL)(DWORD)(fn)((hwnd),WM_ICONERASEBKGND,(WPARAM)(HDC)(hdc),0)

Definition at line 159 of file windowsx.h.

◆ FORWARD_WM_INITDIALOG

#define FORWARD_WM_INITDIALOG (   hwnd,
  hwndFocus,
  lParam,
  fn 
)    (BOOL)(DWORD)(fn)((hwnd),WM_INITDIALOG,(WPARAM)(HWND)(hwndFocus),(lParam))

Definition at line 160 of file windowsx.h.

◆ FORWARD_WM_INITMENU

#define FORWARD_WM_INITMENU (   hwnd,
  hMenu,
  fn 
)    (void)(fn)((hwnd),WM_INITMENU,(WPARAM)(HMENU)(hMenu),0)

Definition at line 161 of file windowsx.h.

◆ FORWARD_WM_INITMENUPOPUP

#define FORWARD_WM_INITMENUPOPUP (   hwnd,
  hMenu,
  item,
  fSystemMenu,
  fn 
)    (void)(fn)((hwnd),WM_INITMENUPOPUP,(WPARAM)(HMENU)(hMenu),MAKELPARAM((item),(fSystemMenu)))

Definition at line 162 of file windowsx.h.

◆ FORWARD_WM_KEYDOWN

#define FORWARD_WM_KEYDOWN (   hwnd,
  vk,
  cRepeat,
  flags,
  fn 
)    (void)(fn)((hwnd),WM_KEYDOWN,(WPARAM)(UINT)(vk),MAKELPARAM((cRepeat),(flags)))

Definition at line 163 of file windowsx.h.

◆ FORWARD_WM_KEYUP

#define FORWARD_WM_KEYUP (   hwnd,
  vk,
  cRepeat,
  flags,
  fn 
)    (void)(fn)((hwnd),WM_KEYUP,(WPARAM)(UINT)(vk),MAKELPARAM((cRepeat),(flags)))

Definition at line 164 of file windowsx.h.

◆ FORWARD_WM_KILLFOCUS

#define FORWARD_WM_KILLFOCUS (   hwnd,
  hwndNewFocus,
  fn 
)    (void)(fn)((hwnd),WM_KILLFOCUS,(WPARAM)(HWND)(hwndNewFocus),0)

Definition at line 165 of file windowsx.h.

◆ FORWARD_WM_LBUTTONDOWN

#define FORWARD_WM_LBUTTONDOWN (   hwnd,
  fDoubleClick,
  x,
  y,
  keyFlags,
  fn 
)    (void)(fn)((hwnd),(fDoubleClick) ? WM_LBUTTONDBLCLK : WM_LBUTTONDOWN,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))

Definition at line 166 of file windowsx.h.

◆ FORWARD_WM_LBUTTONUP

#define FORWARD_WM_LBUTTONUP (   hwnd,
  x,
  y,
  keyFlags,
  fn 
)    (void)(fn)((hwnd),WM_LBUTTONUP,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))

Definition at line 167 of file windowsx.h.

◆ FORWARD_WM_MBUTTONDOWN

#define FORWARD_WM_MBUTTONDOWN (   hwnd,
  fDoubleClick,
  x,
  y,
  keyFlags,
  fn 
)    (void)(fn)((hwnd),(fDoubleClick) ? WM_MBUTTONDBLCLK : WM_MBUTTONDOWN,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))

Definition at line 168 of file windowsx.h.

◆ FORWARD_WM_MBUTTONUP

#define FORWARD_WM_MBUTTONUP (   hwnd,
  x,
  y,
  keyFlags,
  fn 
)    (void)(fn)((hwnd),WM_MBUTTONUP,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))

Definition at line 169 of file windowsx.h.

◆ FORWARD_WM_MDIACTIVATE

#define FORWARD_WM_MDIACTIVATE (   hwnd,
  fActive,
  hwndActivate,
  hwndDeactivate,
  fn 
)    (void)(fn)(hwnd,WM_MDIACTIVATE,(WPARAM)(hwndDeactivate),(LPARAM)(hwndActivate))

Definition at line 170 of file windowsx.h.

◆ FORWARD_WM_MDICASCADE

#define FORWARD_WM_MDICASCADE (   hwnd,
  cmd,
  fn 
)    (BOOL)(DWORD)(fn)((hwnd),WM_MDICASCADE,(WPARAM)(cmd),0)

Definition at line 171 of file windowsx.h.

◆ FORWARD_WM_MDICREATE

#define FORWARD_WM_MDICREATE (   hwnd,
  lpmcs,
  fn 
)    (HWND)(UINT_PTR)(fn)((hwnd),WM_MDICREATE,0,(LPARAM)(LPMDICREATESTRUCT)(lpmcs))

Definition at line 172 of file windowsx.h.

◆ FORWARD_WM_MDIDESTROY

#define FORWARD_WM_MDIDESTROY (   hwnd,
  hwndDestroy,
  fn 
)    (void)(fn)((hwnd),WM_MDIDESTROY,(WPARAM)(hwndDestroy),0)

Definition at line 173 of file windowsx.h.

◆ FORWARD_WM_MDIGETACTIVE

#define FORWARD_WM_MDIGETACTIVE (   hwnd,
  fn 
)    (HWND)(UINT_PTR)(fn)((hwnd),WM_MDIGETACTIVE,0,0)

Definition at line 174 of file windowsx.h.

◆ FORWARD_WM_MDIICONARRANGE

#define FORWARD_WM_MDIICONARRANGE (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_MDIICONARRANGE,0,0)

Definition at line 175 of file windowsx.h.

◆ FORWARD_WM_MDIMAXIMIZE

#define FORWARD_WM_MDIMAXIMIZE (   hwnd,
  hwndMaximize,
  fn 
)    (void)(fn)((hwnd),WM_MDIMAXIMIZE,(WPARAM)(hwndMaximize),0)

Definition at line 176 of file windowsx.h.

◆ FORWARD_WM_MDINEXT

#define FORWARD_WM_MDINEXT (   hwnd,
  hwndCur,
  fPrev,
  fn 
)    (HWND)(UINT_PTR)(fn)((hwnd),WM_MDINEXT,(WPARAM)(hwndCur),(LPARAM)(fPrev))

Definition at line 177 of file windowsx.h.

◆ FORWARD_WM_MDIRESTORE

#define FORWARD_WM_MDIRESTORE (   hwnd,
  hwndRestore,
  fn 
)    (void)(fn)((hwnd),WM_MDIRESTORE,(WPARAM)(hwndRestore),0)

Definition at line 178 of file windowsx.h.

◆ FORWARD_WM_MDISETMENU

#define FORWARD_WM_MDISETMENU (   hwnd,
  fRefresh,
  hmenuFrame,
  hmenuWindow,
  fn 
)    (HMENU)(UINT_PTR)(fn)((hwnd),WM_MDISETMENU,(WPARAM)((fRefresh) ? (hmenuFrame) : 0),(LPARAM)(hmenuWindow))

Definition at line 179 of file windowsx.h.

◆ FORWARD_WM_MDITILE

#define FORWARD_WM_MDITILE (   hwnd,
  cmd,
  fn 
)    (BOOL)(DWORD)(fn)((hwnd),WM_MDITILE,(WPARAM)(cmd),0)

Definition at line 180 of file windowsx.h.

◆ FORWARD_WM_MEASUREITEM

#define FORWARD_WM_MEASUREITEM (   hwnd,
  lpMeasureItem,
  fn 
)    (void)(fn)((hwnd),WM_MEASUREITEM,(WPARAM)(((MEASUREITEMSTRUCT*)lpMeasureItem)->CtlID),(LPARAM)(MEASUREITEMSTRUCT*)(lpMeasureItem))

Definition at line 181 of file windowsx.h.

◆ FORWARD_WM_MENUCHAR

#define FORWARD_WM_MENUCHAR (   hwnd,
  ch,
  flags,
  hmenu,
  fn 
)    (DWORD)(fn)((hwnd),WM_MENUCHAR,MAKEWPARAM(flags,(WORD)(ch)),(LPARAM)(HMENU)(hmenu))

Definition at line 182 of file windowsx.h.

◆ FORWARD_WM_MENUSELECT

#define FORWARD_WM_MENUSELECT (   hwnd,
  hmenu,
  item,
  hmenuPopup,
  flags,
  fn 
)    (void)(fn)((hwnd),WM_MENUSELECT,MAKEWPARAM((item),(flags)),(LPARAM)(HMENU)((hmenu) ? (hmenu) : (hmenuPopup)))

Definition at line 183 of file windowsx.h.

◆ FORWARD_WM_MOUSEACTIVATE

#define FORWARD_WM_MOUSEACTIVATE (   hwnd,
  hwndTopLevel,
  codeHitTest,
  msg,
  fn 
)    (int)(DWORD)(fn)((hwnd),WM_MOUSEACTIVATE,(WPARAM)(HWND)(hwndTopLevel),MAKELPARAM((codeHitTest),(msg)))

Definition at line 184 of file windowsx.h.

◆ FORWARD_WM_MOUSEMOVE

#define FORWARD_WM_MOUSEMOVE (   hwnd,
  x,
  y,
  keyFlags,
  fn 
)    (void)(fn)((hwnd),WM_MOUSEMOVE,(WPARAM)(UINT)(keyFlags),MAKELPARAM((x),(y)))

Definition at line 185 of file windowsx.h.

◆ FORWARD_WM_MOVE

#define FORWARD_WM_MOVE (   hwnd,
  x,
  y,
  fn 
)    (void)(fn)((hwnd),WM_MOVE,0,MAKELPARAM((x),(y)))

Definition at line 186 of file windowsx.h.

◆ FORWARD_WM_NCACTIVATE

#define FORWARD_WM_NCACTIVATE (   hwnd,
  fActive,
  hwndActDeact,
  fMinimized,
  fn 
)    (BOOL)(DWORD)(fn)((hwnd),WM_NCACTIVATE,(WPARAM)(BOOL)(fActive),0)

Definition at line 187 of file windowsx.h.

◆ FORWARD_WM_NCCALCSIZE

#define FORWARD_WM_NCCALCSIZE (   hwnd,
  fCalcValidRects,
  lpcsp,
  fn 
)    (UINT)(DWORD)(fn)((hwnd),WM_NCCALCSIZE,0,(LPARAM)(NCCALCSIZE_PARAMS*)(lpcsp))

Definition at line 188 of file windowsx.h.

◆ FORWARD_WM_NCCREATE

#define FORWARD_WM_NCCREATE (   hwnd,
  lpCreateStruct,
  fn 
)    (BOOL)(DWORD)(fn)((hwnd),WM_NCCREATE,0,(LPARAM)(LPCREATESTRUCT)(lpCreateStruct))

Definition at line 189 of file windowsx.h.

◆ FORWARD_WM_NCDESTROY

#define FORWARD_WM_NCDESTROY (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_NCDESTROY,0,0)

Definition at line 190 of file windowsx.h.

◆ FORWARD_WM_NCHITTEST

#define FORWARD_WM_NCHITTEST (   hwnd,
  x,
  y,
  fn 
)    (UINT)(DWORD)(fn)((hwnd),WM_NCHITTEST,0,MAKELPARAM((x),(y)))

Definition at line 191 of file windowsx.h.

◆ FORWARD_WM_NCLBUTTONDOWN

#define FORWARD_WM_NCLBUTTONDOWN (   hwnd,
  fDoubleClick,
  x,
  y,
  codeHitTest,
  fn 
)    (void)(fn)((hwnd),(fDoubleClick) ? WM_NCLBUTTONDBLCLK : WM_NCLBUTTONDOWN,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)))

Definition at line 192 of file windowsx.h.

◆ FORWARD_WM_NCLBUTTONUP

#define FORWARD_WM_NCLBUTTONUP (   hwnd,
  x,
  y,
  codeHitTest,
  fn 
)    (void)(fn)((hwnd),WM_NCLBUTTONUP,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)))

Definition at line 193 of file windowsx.h.

◆ FORWARD_WM_NCMBUTTONDOWN

#define FORWARD_WM_NCMBUTTONDOWN (   hwnd,
  fDoubleClick,
  x,
  y,
  codeHitTest,
  fn 
)    (void)(fn)((hwnd),(fDoubleClick) ? WM_NCMBUTTONDBLCLK : WM_NCMBUTTONDOWN,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)) )

Definition at line 194 of file windowsx.h.

◆ FORWARD_WM_NCMBUTTONUP

#define FORWARD_WM_NCMBUTTONUP (   hwnd,
  x,
  y,
  codeHitTest,
  fn 
)    (void)(fn)((hwnd),WM_NCMBUTTONUP,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)) )

Definition at line 195 of file windowsx.h.

◆ FORWARD_WM_NCMOUSEMOVE

#define FORWARD_WM_NCMOUSEMOVE (   hwnd,
  x,
  y,
  codeHitTest,
  fn 
)    (void)(fn)((hwnd),WM_NCMOUSEMOVE,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)))

Definition at line 196 of file windowsx.h.

◆ FORWARD_WM_NCPAINT

#define FORWARD_WM_NCPAINT (   hwnd,
  hrgn,
  fn 
)    (void)(fn)((hwnd),WM_NCPAINT,(WPARAM)(HRGN)(hrgn),0)

Definition at line 197 of file windowsx.h.

◆ FORWARD_WM_NCRBUTTONDOWN

#define FORWARD_WM_NCRBUTTONDOWN (   hwnd,
  fDoubleClick,
  x,
  y,
  codeHitTest,
  fn 
)    (void)(fn)((hwnd),(fDoubleClick) ? WM_NCRBUTTONDBLCLK : WM_NCRBUTTONDOWN,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)) )

Definition at line 198 of file windowsx.h.

◆ FORWARD_WM_NCRBUTTONUP

#define FORWARD_WM_NCRBUTTONUP (   hwnd,
  x,
  y,
  codeHitTest,
  fn 
)    (void)(fn)((hwnd),WM_NCRBUTTONUP,(WPARAM)(UINT)(codeHitTest),MAKELPARAM((x),(y)) )

Definition at line 199 of file windowsx.h.

◆ FORWARD_WM_NEXTDLGCTL

#define FORWARD_WM_NEXTDLGCTL (   hwnd,
  hwndSetFocus,
  fNext,
  fn 
)    (HWND)(UINT_PTR)(fn)((hwnd),WM_NEXTDLGCTL,(WPARAM)(HWND)(hwndSetFocus),(LPARAM)(fNext))

Definition at line 200 of file windowsx.h.

◆ FORWARD_WM_PAINT

#define FORWARD_WM_PAINT (   hwnd,
  fn 
)    (void)(fn)((hwnd),WM_PAINT,0,0)

Definition at line 201 of file windowsx.h.

◆ FORWARD_WM_PAINTCLIPBOARD

#define FORWARD_WM_PAINTCLIPBOARD (   hwnd,
  hwndCBViewer,
  lpPaintStruct,
  fn 
)    (void)(fn)((hwnd),WM_PAINTCLIPBOARD,(WPARAM)(HWND)(hwndCBViewer),(LPARAM)(LPPAINTSTRUCT)(lpPaintStruct))

Definition at line 202 of file windowsx.h.

◆ FORWARD_WM_PALETTECHANGED

#define FORWARD_WM_PALETTECHANGED (   hwnd,
  hwndPaletteChange,
  fn 
)    (void)(fn)((hwnd),WM_PALETTECHANGED,(WPARAM)(HWND)(hwndPaletteChange),0)

Definition at line 203 of file windowsx.h.

◆ FORWARD_WM_PALETTEISCHANGING

#define FORWARD_WM_PALETTEISCHANGING (   hwnd,
  hwndPaletteChange,
  fn 
)    (void)(fn)((hwnd),WM_PALETTEISCHANGING,(WPARAM)(HWND)(hwndPaletteChange),0)

Definition at line 204 of file windowsx.h.

◆ FORWARD_WM_PARENTNOTIFY

#define FORWARD_WM_PARENTNOTIFY (   hwnd,
  msg,
  hwndChild,
  idChild,
  fn 
)    (void)(fn)((hwnd),WM_PARENTNOTIFY,MAKEWPARAM(msg,idChild),(LPARAM)(hwndChild))

Definition at line 205 of file windowsx.h.

◆ FORWARD_WM_PASTE

#define FORWARD_WM_PASTE (   hwnd,