X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..edb89f7e356761b4fbdaebb8b5ebd5c7a7643da7:/include/wx/msw/winundef.h diff --git a/include/wx/msw/winundef.h b/include/wx/msw/winundef.h index 7a078f9a76..87c9c72f53 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 @@ -128,19 +146,19 @@ #ifdef StartDoc #undef StartDoc - #ifdef __GNUG__ + #if defined( __GNUG__ ) && !wxCHECK_W32API_VERSION( 0, 5 ) #define DOCINFOW DOCINFO #define DOCINFOA DOCINFO #endif #ifdef _UNICODE inline int StartDoc(HDC h, CONST DOCINFOW* info) { - return StartDocW(h, info); + return StartDocW(h, (DOCINFOW*) info); } #else inline int StartDoc(HDC h, CONST DOCINFOA* info) { - return StartDocA(h, info); + return StartDocA(h, (DOCINFOA*) info); } #endif #endif