- if (style & wxYES_NO) center_flag = wxALIGN_CENTRE;
- topsizer->Add( CreateButtonSizer( style & (wxOK|wxCANCEL|wxYES_NO|wxYES_DEFAULT|wxNO_DEFAULT) ),
- 0, center_flag | wxALL, 10 );
+ if (m_dialogStyle & wxYES_NO)
+ center_flag = wxALIGN_CENTRE;
+ wxSizer *sizerBtn = CreateSeparatedButtonSizer(m_dialogStyle & ButtonSizerFlags);
+ if ( sizerBtn )
+ topsizer->Add(sizerBtn, 0, center_flag | wxALL, 10 );