projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
using CLSCTX_ALL fails with Microsoft Office applications, correct the last change...
[wxWidgets.git]
/
samples
/
editlbox
/
editlbox.cpp
diff --git
a/samples/editlbox/editlbox.cpp
b/samples/editlbox/editlbox.cpp
index 66a91d19fe970fbaf776d3378ef79c4ad6d6d487..a317e4edeb1636686b69c5fe543e619124c6b2da 100644
(file)
--- a/
samples/editlbox/editlbox.cpp
+++ b/
samples/editlbox/editlbox.cpp
@@
-48,8
+48,7
@@
bool MyApp::OnInit()
sizer->Add(5,5);
sizer->Add(new wxButton(&dlg, wxID_OK, _("OK")), 0, wxALIGN_RIGHT | wxALL, 10);
- dlg.SetSizer(sizer);
- sizer->Fit(&dlg);
+ dlg.SetSizerAndFit(sizer);
dlg.Centre();
dlg.ShowModal();