changed/centralized window creation code to allow wxTLW work in wxUniv
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11880 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user