Changeset 100 for trunk/src/gui


Ignore:
Timestamp:
Aug 6, 2009, 2:24:58 AM (16 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Implemented widget show/hide functions. Added widget mask (clip region) helpers.

Location:
trunk/src/gui
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/kernel/qapplication_pm.cpp

    r99 r100  
    205205 *****************************************************************************/
    206206
    207 Q_GUI_EXPORT HPS qt_display_dc()
     207Q_GUI_EXPORT HPS qt_display_()
    208208{
    209209    Q_ASSERT(qApp && qApp->thread() == QThread::currentThread());
     
    424424MRESULT EXPENTRY QtWndProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    425425{
    426     // @todo implement
    427     return FALSE;
     426    // message handling indicators: if handled is true at the end of message
     427    // processing, no default window proc is called but rc is returned.
     428    bool handled = false;
     429    MRESULT rc = (MRESULT) FALSE;
     430    QETWidget *widget = 0;
     431    HWND hwndC = NULLHANDLE;
     432
     433    do {
     434        switch(msg) {
     435        default:
     436            break;
     437        }
     438        if (handled)
     439            return rc;
     440    } while(0);
     441
     442    return WinDefWindowProc(hwnd, msg, mp1, mp2);
    428443}
    429444
     
    432447MRESULT EXPENTRY QtFrameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    433448{
    434     // @todo implement
    435     return FALSE;
     449    // message handling indicators: if handled is true at the end of message
     450    // processing, no default window proc is called but rc is returned.
     451    bool handled = false;
     452    MRESULT rc = (MRESULT) FALSE;
     453    QETWidget *widget = 0;
     454    HWND hwndC = NULLHANDLE;
     455
     456    do {
     457        switch(msg) {
     458        default:
     459            break;
     460        }
     461        if (handled)
     462            return rc;
     463    } while(0);
     464
     465    return QtOldFrameProc(hwnd, msg, mp1, mp2);
    436466}
    437467
  • trunk/src/gui/kernel/qwidget_p.h

    r99 r100  
    156156#if defined(Q_WS_PM)
    157157    HWND fId;
     158
    158159#endif
    159160    QRect normalGeometry; // used by showMin/maximized/FullScreen
  • trunk/src/gui/kernel/qwidget_pm.cpp

    r99 r100  
    5151
    5252#include "private/qapplication_p.h"
     53
    5354
    5455#include <qdebug.h>
    5556
    5657#define QT_DEBUGWINCREATEDESTROY
     58
    5759
    5860QT_BEGIN_NAMESPACE
     
    105107}
    106108
     109
     110
     111
     112
     113
     114
     115
     116
     117
     118
     119
     120
     121
     122
     123
     124
     125
     126
     127
     128
     129
     130
     131
     132
     133
     134
     135
     136
     137
     138
     139
     140
     141
     142
     143
     144
     145
     146
     147
     148
     149
     150
     151
     152
     153
     154
     155
     156
     157
     158
     159
     160
     161
     162
     163
     164
     165
     166
     167
     168
     169
     170
     171
     172
     173
     174
     175
     176
     177
     178
     179