projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
A couple demo tweaks
[wxWidgets.git]
/
src
/
common
/
framecmn.cpp
diff --git
a/src/common/framecmn.cpp
b/src/common/framecmn.cpp
index 8bc2ffb5db650f512cc7343be534c2789b90109d..77d1c1e1c4ae9bac671b8fa4aceb18d676896402 100644
(file)
--- a/
src/common/framecmn.cpp
+++ b/
src/common/framecmn.cpp
@@
-152,7
+152,7
@@
wxPoint wxFrameBase::GetClientAreaOrigin() const
{
wxPoint pt = wxTopLevelWindow::GetClientAreaOrigin();
{
wxPoint pt = wxTopLevelWindow::GetClientAreaOrigin();
-#if wxUSE_TOOLBAR
+#if wxUSE_TOOLBAR
&& !defined(__WXUNIVERSAL__)
wxToolBar *toolbar = GetToolBar();
if ( toolbar && toolbar->IsShown() )
{
wxToolBar *toolbar = GetToolBar();
if ( toolbar && toolbar->IsShown() )
{
@@
-196,6
+196,7
@@
bool wxFrameBase::ProcessCommand(int id)
if (item->IsCheckable())
{
item->Toggle();
if (item->IsCheckable())
{
item->Toggle();
+
// use the new value
commandEvent.SetInt(item->IsChecked());
}
// use the new value
commandEvent.SetInt(item->IsChecked());
}