source: trunk/src/gui/kernel/qwindowdefs_pm.h@ 67

Last change on this file since 67 was 67, checked in by Dmitry A. Kuminov, 16 years ago

corelib: OS/2: Initial port of QEventDispatcher.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Date Revision Author Id
File size: 2.8 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4** Contact: Qt Software Information ([email protected])
5**
6** Copyright (C) 2009 netlabs.org. OS/2 parts.
7**
8** This file is part of the QtGui module of the Qt Toolkit.
9**
10** $QT_BEGIN_LICENSE:LGPL$
11** Commercial Usage
12** Licensees holding valid Qt Commercial licenses may use this file in
13** accordance with the Qt Commercial License Agreement provided with the
14** Software or, alternatively, in accordance with the terms contained in
15** a written agreement between you and Nokia.
16**
17** GNU Lesser General Public License Usage
18** Alternatively, this file may be used under the terms of the GNU Lesser
19** General Public License version 2.1 as published by the Free Software
20** Foundation and appearing in the file LICENSE.LGPL included in the
21** packaging of this file. Please review the following information to
22** ensure the GNU Lesser General Public License version 2.1 requirements
23** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24**
25** In addition, as a special exception, Nokia gives you certain
26** additional rights. These rights are described in the Nokia Qt LGPL
27** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this
28** package.
29**
30** GNU General Public License Usage
31** Alternatively, this file may be used under the terms of the GNU
32** General Public License version 3.0 as published by the Free Software
33** Foundation and appearing in the file LICENSE.GPL included in the
34** packaging of this file. Please review the following information to
35** ensure the GNU General Public License version 3.0 requirements will be
36** met: http://www.gnu.org/copyleft/gpl.html.
37**
38** If you are unsure which license is appropriate for your use, please
39** contact the sales department at [email protected].
40** $QT_END_LICENSE$
41**
42****************************************************************************/
43
44#ifndef QWINDOWDEFS_PM_H
45#define QWINDOWDEFS_PM_H
46
47#include <QtCore/qglobal.h>
48
49QT_BEGIN_HEADER
50
51QT_BEGIN_NAMESPACE
52
53QT_MODULE(Gui)
54
55QT_END_NAMESPACE
56
57typedef HWND WId;
58
59QT_BEGIN_NAMESPACE
60
61class Q_CORE_EXPORT QPMObjectWindow
62{
63public:
64 QPMObjectWindow(bool deferred = false);
65 virtual ~QPMObjectWindow();
66
67 bool create();
68 bool destroy();
69 HWND hwnd() const { return w; }
70
71 MRESULT send(ULONG msg, MPARAM mp1, MPARAM mp2) const {
72 return WinSendMsg(w, msg, mp1, mp2);
73 }
74
75 bool post(ULONG msg, MPARAM mp1, MPARAM mp2) const {
76 return WinPostMsg(w, msg, mp1, mp2);
77 }
78
79 virtual MRESULT message(ULONG msg, MPARAM mp1, MPARAM mp2) = 0;
80
81private:
82 static MRESULT EXPENTRY windowProc(HWND, ULONG, MPARAM, MPARAM);
83
84 HWND w;
85};
86
87QT_END_NAMESPACE
88
89QT_END_HEADER
90
91#endif // QWINDOWDEFS_WIN_H
Note: See TracBrowser for help on using the repository browser.