diff options
Diffstat (limited to 'Windows/Control/Dialog.h')
-rwxr-xr-x | Windows/Control/Dialog.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Windows/Control/Dialog.h b/Windows/Control/Dialog.h index de42a656..4d978790 100755 --- a/Windows/Control/Dialog.h +++ b/Windows/Control/Dialog.h @@ -102,6 +102,9 @@ class CModelessDialog: public CDialog { public: bool Create(LPCTSTR templateName, HWND parentWindow); + #ifndef _UNICODE + bool Create(LPCWSTR templateName, HWND parentWindow); + #endif virtual void OnOK() { Destroy(); } virtual void OnCancel() { Destroy(); } }; @@ -110,7 +113,12 @@ class CModalDialog: public CDialog { public: INT_PTR Create(LPCTSTR templateName, HWND parentWindow); - // INT_PTR Create(LPCWSTR templateName, HWND parentWindow); + INT_PTR Create(UINT resID, HWND parentWindow) + { return Create(MAKEINTRESOURCEW(resID), parentWindow); } + #ifndef _UNICODE + INT_PTR Create(LPCWSTR templateName, HWND parentWindow); + #endif + bool End(INT_PTR result) { return BOOLToBool(::EndDialog(_window, result)); } virtual void OnOK() { End(IDOK); } |