WinCE adaptations

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2005-04-02 17:34:50 +00:00
parent 454180593f
commit 03775239e2

View File

@@ -154,7 +154,7 @@ wxGenericDirDialog::wxGenericDirDialog(wxWindow* parent, const wxString& title,
// 1) dir ctrl // 1) dir ctrl
m_dirCtrl = NULL; // this is neccessary, event handler called from m_dirCtrl = NULL; // this is neccessary, event handler called from
// wxGenericDirCtrl would crash otherwise! // wxGenericDirCtrl would crash otherwise!
long dirStyle = wxDIRCTRL_DIR_ONLY|wxSUNKEN_BORDER; long dirStyle = wxDIRCTRL_DIR_ONLY | wxDEFAULT_CONTROL_BORDER;
#ifdef __WXMSW__ #ifdef __WXMSW__
if (style & wxDD_NEW_DIR_BUTTON) if (style & wxDD_NEW_DIR_BUTTON)
@@ -199,10 +199,12 @@ wxGenericDirDialog::wxGenericDirDialog(wxWindow* parent, const wxString& title,
SetAutoLayout( true ); SetAutoLayout( true );
SetSizer( topsizer ); SetSizer( topsizer );
#if !defined(__SMARTPHONE__) && !defined(__POCKETPC__)
topsizer->SetSizeHints( this ); topsizer->SetSizeHints( this );
topsizer->Fit( this ); topsizer->Fit( this );
Centre( wxBOTH ); Centre( wxBOTH );
#endif
} }
void wxGenericDirDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event)) void wxGenericDirDialog::OnCloseWindow(wxCloseEvent& WXUNUSED(event))