X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27476f7368c891de149723b7d4cf9fb922ce8433..0b7e6e7da208b6a95fb23cb50286a09dc90d96d2:/src/os2/dialog.cpp diff --git a/src/os2/dialog.cpp b/src/os2/dialog.cpp index fe94c51472..874a9c90a2 100644 --- a/src/os2/dialog.cpp +++ b/src/os2/dialog.cpp @@ -1,12 +1,12 @@ ///////////////////////////////////////////////////////////////////////////// // Name: dialog.cpp // Purpose: wxDialog class -// Author: AUTHOR +// Author: David Webster // Modified by: -// Created: ??/??/98 +// Created: 10/14/99 // RCS-ID: $Id$ -// Copyright: (c) AUTHOR -// Licence: wxWindows licence +// Copyright: (c) David Webster +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx.h". @@ -25,10 +25,6 @@ #include "wx/os2/private.h" #include "wx/log.h" -#if wxUSE_COMMON_DIALOGS -#include -#endif - #define wxDIALOG_DEFAULT_X 300 #define wxDIALOG_DEFAULT_Y 300 @@ -38,7 +34,6 @@ wxWindowList wxModalDialogs; wxWindowList wxModelessWindows; // Frames and modeless dialogs extern wxList WXDLLEXPORT wxPendingDelete; -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxDialog, wxPanel) BEGIN_EVENT_TABLE(wxDialog, wxPanel) @@ -50,7 +45,6 @@ extern wxList WXDLLEXPORT wxPendingDelete; EVT_SYS_COLOUR_CHANGED(wxDialog::OnSysColourChanged) EVT_CLOSE(wxDialog::OnCloseWindow) END_EVENT_TABLE() -#endif wxDialog::wxDialog() { @@ -116,11 +110,11 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, // otherwise it would look too strange) // const wxChar *dlg; // if ( style & wxRESIZE_BORDER ) -// dlg = T("wxResizeableDialog"); +// dlg = wxT("wxResizeableDialog"); // else if ( style & wxCAPTION ) -// dlg = T("wxCaptionDialog"); +// dlg = wxT("wxCaptionDialog"); // else -// dlg = T("wxNoCaptionDialog"); +// dlg = wxT("wxNoCaptionDialog"); // MSWCreate(m_windowId, parent, NULL, this, NULL, // x, y, width, height, // 0, // style is not used if we have dlg template @@ -131,7 +125,7 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id, // // if ( !hwnd ) // { -// wxLogError(T("Failed to create dialog.")); +// wxLogError(wxT("Failed to create dialog.")); // // return FALSE; // } @@ -429,7 +423,7 @@ void wxDialog::OnSysColourChanged(wxSysColourChangedEvent& event) Refresh(); } -MRESULT wxDialog::OS2WindowProc(HWND hwnd, WXUINT message, WXWPARAM wParam, WXLPARAM lParam) +MRESULT wxDialog::OS2WindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam) { MRESULT rc = 0; bool processed = FALSE; @@ -444,7 +438,7 @@ MRESULT wxDialog::OS2WindowProc(HWND hwnd, WXUINT message, WXWPARAM wParam, WXLP } if ( !processed ) - rc = wxWindow::OS2WindowProc(hwnd, message, wParam, lParam); + rc = wxWindow::OS2WindowProc(message, wParam, lParam); return rc; }