X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4a10ea8b13fd0851e71e6fa5ebbe5b93933be11e..4ff53d1b7a714df97b2b4e584c67c69037fc47b8:/samples/dnd/dnd.cpp diff --git a/samples/dnd/dnd.cpp b/samples/dnd/dnd.cpp index 5b8217840a..2e78753d0f 100644 --- a/samples/dnd/dnd.cpp +++ b/samples/dnd/dnd.cpp @@ -522,7 +522,7 @@ public: virtual size_t GetFormatCount(Direction dir) const { // our custom format is supported by both GetData() and SetData() - ULONG nFormats = 1; + size_t nFormats = 1; if ( dir == Get ) { // but the bitmap format(s) are only supported for output @@ -1509,7 +1509,7 @@ bool DnDFile::OnDropFiles(wxCoord, wxCoord, const wxArrayString& filenames) DnDShapeDialog::DnDShapeDialog(wxFrame *parent, DnDShape *shape) :wxDialog( parent, 6001, wxT("Choose Shape"), wxPoint( 10, 10 ), wxSize( 40, 40 ), - wxRAISED_BORDER|wxCAPTION|wxTHICK_FRAME|wxSYSTEM_MENU ) + wxDEFAULT_DIALOG_STYLE | wxRAISED_BORDER | wxTHICK_FRAME ) { m_shape = shape; wxBoxSizer* topSizer = new wxBoxSizer( wxVERTICAL );