Fixed wxWindow::HandleCommand so multiple toolbars work again (e.g. ogl/studio sample);

added border to OGL studio window


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6287 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2000-02-25 16:20:58 +00:00
parent e006f096ad
commit 2f4ef631af
3 changed files with 5 additions and 4 deletions

View File

@@ -3020,13 +3020,14 @@ bool wxWindow::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
return popupMenu->MSWCommand(cmd, id);
}
wxWindow *win;
wxWindow *win = (wxWindow*) NULL;
if ( cmd == 0 || cmd == 1 ) // menu or accel - use id
{
// must cast to a signed type before comparing with other ids!
win = FindItem((signed short)id);
}
else
if (!win && control)
{
// find it from HWND - this works even with the broken programs using
// the same ids for different controls