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;
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();
return NULL;
}
-wxWindow* wxWindow::GetWindowChild(const wxWindowID& id)
+wxWindow* wxWindow::GetWindowChild(wxWindowID& id)
{
wxWindow* win = GetWindowChild1(id);
if ( !win )
{
// TODO: how to find the bitmap?
win = new wxBitmapButton;
- wxMessageBox("Have not yet implemented bitmap button as BS_BITMAP button.");
+ wxLogError("Have not yet implemented bitmap button as BS_BITMAP button.");
}
#endif
else if (style1 == BS_OWNERDRAW)
{
char buf[256];
sprintf(buf, "Don't know what kind of button this is: id = %d", (int) id);
- wxMessageBox(buf);
+ wxLogError(buf);
}
}
else if (str == "COMBOBOX")
#if defined(__WIN95__)
else if (str == "MSCTLS_UPDOWN32")
{
- win == new wxSpinButton;
+ win = new wxSpinButton;
}
#endif
else if (str == "MSCTLS_TRACKBAR32")
win = new wxStaticBitmap;
// Help! this doesn't correspond with the wxWin implementation.
- wxMessageBox("Please make SS_BITMAP statics into owner-draw buttons.");
+ wxLogError("Please make SS_BITMAP statics into owner-draw buttons.");
}
#endif
}
{
wxString msg("Don't know how to convert from Windows class ");
msg += str;
- wxMessageBox(msg);
+ wxLogError(msg);
}
if (win)