]> git.saurik.com Git - wxWidgets.git/commitdiff
Modified dialog size under MSW to look better ( button was cut off)
authorJ. Russell Smyth <drfish@cox.net>
Tue, 27 Jul 1999 17:03:21 +0000 (17:03 +0000)
committerJ. Russell Smyth <drfish@cox.net>
Tue, 27 Jul 1999 17:03:21 +0000 (17:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3166 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/html/about/about.cpp

index 7bfb813b2e0cd57791f008ebae659ba109c7e9d5..3e3ffdebcb3aac6ade36d117a9c4f0b8e8463d61 100644 (file)
    void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
    {
         wxHtmlWindow *html;
+#if __WXMSW__
+        wxDialog dlg(this, -1, "About", wxDefaultPosition, wxSize(400, 250), wxDIALOG_MODAL | wxDEFAULT_DIALOG_STYLE);
+#else
         wxDialog dlg(this, -1, "About", wxDefaultPosition, wxSize(400, 230), wxDIALOG_MODAL | wxDEFAULT_DIALOG_STYLE);
+#endif
 
         html = new wxHtmlWindow(&dlg, -1, wxPoint(10, 10), wxSize(380, 160), "htmlWindow", FALSE);
         html -> SetBorders(0);