]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/nativdlg.cpp
DialogEd compiles and works more or less
[wxWidgets.git] / src / msw / nativdlg.cpp
index 886418996f050cda8ea838ae541e98d51d77574b..097db29e59800a2927bd3a3813b165b3c63da19b 100644 (file)
@@ -31,7 +31,7 @@
 extern wxWindow *wxWndHook;
 extern LONG APIENTRY _EXPORT wxDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam);
 
-bool wxWindow::LoadNativeDialog(wxWindow* parent, const wxWindowID& id)
+bool wxWindow::LoadNativeDialog(wxWindow* parent, wxWindowID& id)
 {
        m_windowId = id;
     wxWndHook = this;
@@ -91,12 +91,12 @@ bool wxWindow::LoadNativeDialog(wxWindow* parent, const wxString& name)
        return TRUE;
 }
 
-wxWindow* wxWindow::GetWindowChild1(const wxWindowID& id)
+wxWindow* wxWindow::GetWindowChild1(wxWindowID& id)
 {
        if ( m_windowId == id )
                return this;
 
-       wxNode *node = GetChildren()->First();
+       wxNode *node = GetChildren().First();
        while ( node )
        {
                wxWindow* child = (wxWindow*) node->Data();
@@ -109,7 +109,7 @@ wxWindow* wxWindow::GetWindowChild1(const wxWindowID& id)
        return NULL;
 }
 
-wxWindow* wxWindow::GetWindowChild(const wxWindowID& id)
+wxWindow* wxWindow::GetWindowChild(wxWindowID& id)
 {
        wxWindow* win = GetWindowChild1(id);
        if ( !win )
@@ -227,7 +227,7 @@ wxWindow* wxWindow::CreateWindowFromHWND(wxWindow* parent, WXHWND hWnd)
 #if defined(__WIN95__)
        else if (str == "MSCTLS_UPDOWN32")
        {
-               win == new wxSpinButton;
+               win = new wxSpinButton;
        }
 #endif
        else if (str == "MSCTLS_TRACKBAR32")