コード例 #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;
}