Ignore:
Timestamp:
Aug 20, 2011, 8:26:35 PM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

OS/2: Export qt_WinProcessWindowObstacles() as APIENTRY and document it.

This routine is necessary when 3rd-party applications paint directly to a HWND
of a Qt Widget bypassing Qt.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qwindowdefs_pm.h

    r1006 r1013  
    7676#define NULLHANDLE ((LHANDLE)0)
    7777
     78#define APIENTRY _System
     79
    7880// constants to address extra window data (nothing so far)
    7981#define QT_EXTRAWINDATASIZE     (sizeof(LONG) * 0)
     
    9092Q_GUI_EXPORT QWidget *qt_widget_from_hwnd(HWND hwnd);
    9193
    92 /** \internal flags for qt_WinProcessWindowObstacles() */
    93 enum {
     94enum PWOFlags {
    9495    PWO_Children = 0x01,
    95     PWO_Sibings = 0x02,
     96    PWO_Siblings = 0x02,
    9697    PWO_Ancestors = 0x04,
    9798    PWO_Screen = 0x08,
    9899    PWO_TopLevel = 0x80000000,
    99     // PWO_Default is suitable in most cases (for simple paint operations)
    100     PWO_Default = PWO_Children | PWO_Sibings | PWO_Ancestors | PWO_Screen,
     100    PWO_Default = 0 /*PWO_Children | PWO_Siblings | PWO_Ancestors | PWO_Screen*/,
    101101};
    102102
    103 Q_GUI_EXPORT LONG qt_WinProcessWindowObstacles(HWND hwnd, RECTL *prcl, HRGN hrgn,
    104                                                LONG op, LONG flags = PWO_Default);
     103#ifdef Q_QDOC
     104LONG qt_WinProcessWindowObstacles(HWND hwnd, RECTL *prcl, HRGN hrgn,
     105                                  LONG op, LONG flags);
     106#else
     107Q_GUI_EXPORT LONG APIENTRY qt_WinProcessWindowObstacles(HWND hwnd, RECTL *prcl,
     108                                                        HRGN hrgn, LONG op,
     109                                                        LONG flags);
     110#endif
    105111
    106112// QDebug helpers for debugging various API types
Note: See TracChangeset for help on using the changeset viewer.