Home

qmfcapp.h

This is the verbatim text of the qmfcapp.h include file. It is provided only for illustration; the copyright remains with Trolltech.


/****************************************************************************
** $Id: $
**
** Declaration of the QMfcApp classes
**
** Copyright (C) 2002-2003 Trolltech AS.  All rights reserved.
**
** This file is part of the MFC/Win32 migration framework.
**
** Licensees holding valid Qt Enterprise Edition or Qt Professional Edition
** licenses for Windows may use this file in accordance with the Qt Commercial
** License Agreement provided with the Software.
**
** This file is not available for use under any other license without
** express written permission from the copyright holder.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.trolltech.com/pricing.html or email sales@trolltech.com for
**   information about Qt Commercial License Agreements.
**
** Contact info@trolltech.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/

#ifndef QMFCAPP_H
#define QMFCAPP_H

#include <qapplication.h>

class CWinApp;

class QMfcApp : public QApplication
{
public:
    static int run( CWinApp *mfcApp );
    static QApplication *instance( CWinApp *mfcApp );
    static bool pluginInstance( HANDLE plugin = 0 );

    QMfcApp( CWinApp *mfcApp, int &argc, char **argv );
    ~QMfcApp();

    bool winEventFilter( MSG *msg );

private:
    static char ** mfc_argv;
    static int mfc_argc;
    static CWinApp *mfc_app;
};

#endif // QMFCAPP_H

Copyright © 2003-2004 TrolltechTrademarks
Qt Solutions