Changeset 89 for trunk/src/gui
- Timestamp:
- Jul 27, 2009, 10:25:33 PM (16 years ago)
- Location:
- trunk/src/gui/kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gui/kernel/qwindowdefs.h
r2 r89 111 111 #endif // Q_WS_WIN 112 112 113 #if defined(Q_WS_PM) 114 #include <QtGui/qwindowdefs_pm.h> 115 #endif // Q_WS_PM 116 113 117 #if defined(Q_WS_X11) 114 118 -
trunk/src/gui/kernel/qwindowdefs_pm.h
r67 r89 55 55 QT_END_NAMESPACE 56 56 57 // typedefs to avoid inclusion of qt_os2.h in public headers 58 typedef unsigned long LHANDLE; 59 typedef LHANDLE HWND; 60 57 61 typedef HWND WId; 58 62 59 63 QT_BEGIN_NAMESPACE 60 61 class Q_CORE_EXPORT QPMObjectWindow62 {63 public: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 81 private:82 static MRESULT EXPENTRY windowProc(HWND, ULONG, MPARAM, MPARAM);83 84 HWND w;85 };86 64 87 65 QT_END_NAMESPACE
Note:
See TracChangeset
for help on using the changeset viewer.