X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8c72298ec07a4f296ffde211360682447b9d159..e34732036315991c0ab6ab9035fa844c5080ee19:/include/wx/msw/winundef.h diff --git a/include/wx/msw/winundef.h b/include/wx/msw/winundef.h index 3e6653c834..3c15b7290c 100644 --- a/include/wx/msw/winundef.h +++ b/include/wx/msw/winundef.h @@ -25,6 +25,24 @@ // elsewhere because the functions, unlike the macros, respect the scope. // ---------------------------------------------------------------------------- +// CreateDialog + +#ifdef CreateDialog + #undef CreateDialog + + inline HWND CreateDialog(HINSTANCE hInstance, + LPCTSTR pTemplate, + HWND hwndParent, + DLGPROC pDlgProc) + { + #ifdef _UNICODE + return CreateDialogW(hInstance, pTemplate, hwndParent, pDlgProc); + #else + return CreateDialogA(hInstance, pTemplate, hwndParent, pDlgProc); + #endif + } +#endif + // GetCharWidth #ifdef GetCharWidth @@ -273,6 +291,11 @@ } #endif + +#ifdef Yield + #undef Yield +#endif + // GetWindowProc //ifdef GetWindowProc // #undef GetWindowProc