| Home | ![]() |
This is the verbatim text of the qwinwidget.h include file. It is provided only for illustration; the copyright remains with Trolltech.
/****************************************************************************
** $Id: $
**
** Declaration of the QWinWidget 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 QWINWIDGET_H
#define QWINWIDGET_H
#include <qwidget.h>
class CWnd;
class QMenuData;
class QWinMenu;
class QWinWidget : public QWidget
{
Q_OBJECT
public:
QWinWidget( HWND hParentWnd, QObject *parent = 0, const char *name = 0, WFlags f = 0 );
#ifdef Q_CC_MSVC
QWinWidget( CWnd *parnetWnd, QObject *parent = 0, const char *name = 0, WFlags f = 0 );
#endif
~QWinWidget();
void show();
void showCentered();
HWND parentWindow() const;
QMenuData *menuBar() const;
protected:
void childEvent( QChildEvent *e );
bool eventFilter( QObject *o, QEvent *e );
bool focusNextPrevChild(bool next);
void focusInEvent(QFocusEvent *e);
bool winEvent(MSG *);
private:
void init();
void saveFocus();
void resetFocus();
HWND hParent;
HWND prevFocus;
bool reenable_parent;
QWinMenu *menu_data;
};
#endif // QWINWIDGET_H
| Copyright © 2003-2004 Trolltech | Trademarks | Qt Solutions
|