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.

File:
1 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_ps()
    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
Note: See TracChangeset for help on using the changeset viewer.