コード例 #1
0
ファイル: qxmlApp.cpp プロジェクト: BackupTheBerlios/qedo-svn
bool QxmlApp::OnInit()
{
////@begin QxmlApp initialisation
    // Remove the comment markers above and below this block
    // to make permanent changes to the code.

    MyDialog *dialog = new MyDialog(NULL,-1,"QXML",wxPoint(50,50), wxSize(450,350),wxDEFAULT_DIALOG_STYLE);


#if wxUSE_XPM
    wxImage::AddHandler( new wxXPMHandler );
#endif
#if wxUSE_LIBPNG
    wxImage::AddHandler( new wxPNGHandler );
#endif
#if wxUSE_LIBJPEG
    wxImage::AddHandler( new wxJPEGHandler );
#endif
#if wxUSE_GIF
    wxImage::AddHandler( new wxGIFHandler );
#endif
////@end QxmlApp initialisation
    if (dialog->ShowModal() == wxID_OK)
    {

    }
    dialog->Destroy();
    return true;
}
コード例 #2
0
ファイル: nativdlg.cpp プロジェクト: EdgarTx/wx
void MyFrame::OnTest1(wxCommandEvent& WXUNUSED(event))
{
#if ( defined(__WXPM__) || defined(__WXMSW__) ) && !defined(__WXUNIVERSAL__)
    MyDialog dialog;
    if (dialog.LoadNativeDialog(this, _T("dialog1")))
    {
        dialog.ShowModal();
    }
#else
    wxMessageBox(_T("No native dialog support"),_T("Platform limitation"));
#endif
}