Changeset 113 for trunk/include


Ignore:
Timestamp:
Aug 10, 2006, 7:50:03 PM (19 years ago)
Author:
dmik
Message:

Kernel: Improved QEventLoop:

  • Timer and socket notifier events are now delivered even if the main event loop is run outside Qt (i.e., by a native modal dialog or when moving/resizing the widet using the mouse).
  • Added the non-portable QPMObjectWindow class (included from qwindowdefs.h) to simplify object window creation and maintainance.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/qwindowdefs_pm.h

    r97 r113  
    9999const ULONG QT_EXTRAWINDATASIZE = sizeof(LONG) * 2;
    100100
     101#ifdef __cplusplus
     102class Q_EXPORT QPMObjectWindow
     103{
     104public:
     105    QPMObjectWindow( bool deferred = FALSE );
     106    virtual ~QPMObjectWindow();
     107   
     108    bool create();
     109    bool destroy();
     110    HWND hwnd() const { return w; }
     111
     112    MRESULT send( ULONG msg, MPARAM mp1, MPARAM mp2 ) const {
     113        return WinSendMsg( w, msg, mp1, mp2 );
     114    }
     115    bool post( ULONG msg, MPARAM mp1, MPARAM mp2 ) const {
     116        return WinPostMsg( w, msg, mp1, mp2 );
     117    }
     118   
     119    virtual MRESULT message( ULONG msg, MPARAM mp1, MPARAM mp2 ) = 0;
     120   
     121private:
     122    static MRESULT EXPENTRY windowProc( HWND, ULONG, MPARAM, MPARAM );
     123
     124    HWND w;
     125};
    101126#endif
     127
     128#endif
Note: See TracChangeset for help on using the changeset viewer.