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:
@@ -3020,13 +3020,14 @@ bool wxWindow::HandleCommand(WXWORD id, WXWORD cmd, WXHWND control)
|
|||||||
return popupMenu->MSWCommand(cmd, id);
|
return popupMenu->MSWCommand(cmd, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
wxWindow *win;
|
wxWindow *win = (wxWindow*) NULL;
|
||||||
if ( cmd == 0 || cmd == 1 ) // menu or accel - use id
|
if ( cmd == 0 || cmd == 1 ) // menu or accel - use id
|
||||||
{
|
{
|
||||||
// must cast to a signed type before comparing with other ids!
|
// must cast to a signed type before comparing with other ids!
|
||||||
win = FindItem((signed short)id);
|
win = FindItem((signed short)id);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if (!win && control)
|
||||||
{
|
{
|
||||||
// find it from HWND - this works even with the broken programs using
|
// find it from HWND - this works even with the broken programs using
|
||||||
// the same ids for different controls
|
// the same ids for different controls
|
||||||
|
@@ -285,7 +285,7 @@ csCanvas *csApp::CreateCanvas(wxView *view, wxFrame *parent)
|
|||||||
parent->GetClientSize(&width, &height);
|
parent->GetClientSize(&width, &height);
|
||||||
|
|
||||||
// Non-retained canvas
|
// Non-retained canvas
|
||||||
csCanvas *canvas = new csCanvas((csDiagramView*) view, parent, 1000, wxPoint(0, 0), wxSize(width, height), 0);
|
csCanvas *canvas = new csCanvas((csDiagramView*) view, parent, 1000, wxPoint(0, 0), wxSize(width, height), wxSUNKEN_BORDER);
|
||||||
|
|
||||||
wxColour bgColour("WHITE");
|
wxColour bgColour("WHITE");
|
||||||
canvas->SetBackgroundColour(bgColour);
|
canvas->SetBackgroundColour(bgColour);
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
WXDIR = $(WXWIN)
|
WXDIR = $(WXWIN)
|
||||||
MMDIR = $(WXDIR)\utils\wxMMedia2
|
MMDIR = $(WXDIR)\utils\wxMMedia2
|
||||||
THISDIR = $(MMDIR)\lib
|
THISDIR = $(MMDIR)\lib
|
||||||
EXTRALIBS=$(WXDIR)\lib\glcanvas.lib
|
EXTRALIBS=$(WXDIR)\lib\mmedia2.lib
|
||||||
|
|
||||||
LIBTARGET=$(WXDIR)\lib\mmedia2.lib
|
LIBTARGET=$(WXDIR)\lib\mmedia2.lib
|
||||||
OBJECTS = cdbase.obj cdwin.obj g711.obj g721.obj g723_24.obj sndg72x.obj \
|
OBJECTS = cdbase.obj cdwin.obj g711.obj g721.obj g723_24.obj sndg72x.obj \
|
||||||
|
Reference in New Issue
Block a user