Ignore:
Timestamp:
Apr 2, 2001, 12:38:55 PM (24 years ago)
Author:
umoeller
Message:

Dialog mgr.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/comctl.c

    r21 r53  
    584584             */
    585585
    586             case WM_TIMER: {
     586            case WM_TIMER:
     587            {
    587588                pa->usAniCurrent++;
    588589                if (pa->usAniCurrent >= pa->usAniCount)
     
    590591
    591592                WinSendMsg(hwndStatic,
    592                         SM_SETHANDLE,
    593                         (MPARAM)pa->ahptrAniIcons[pa->usAniCurrent],
    594                         (MPARAM)NULL);
     593                           SM_SETHANDLE,
     594                           (MPARAM)pa->ahptrAniIcons[pa->usAniCurrent],
     595                           (MPARAM)NULL);
    595596            break; }
    596597
     
    606607                SIZEL szlPage;
    607608
    608                 LONG lBkgndColor = winhQueryPresColor(
    609                                 WinQueryWindow(hwndStatic, QW_PARENT),
    610                                 PP_BACKGROUNDCOLOR,
    611                                 FALSE,
    612                                 SYSCLR_DIALOGBACKGROUND);
     609                LONG lBkgndColor
     610                    = winhQueryPresColor(WinQueryWindow(hwndStatic, QW_PARENT),
     611                                         PP_BACKGROUNDCOLOR,
     612                                         FALSE,
     613                                         SYSCLR_DIALOGBACKGROUND);
    613614
    614615                HPS hps = WinGetPS(hwndStatic);
     
    632633                szlPage.cx = pa->rclIcon.xRight - pa->rclIcon.xLeft;
    633634                szlPage.cy = pa->rclIcon.yTop - pa->rclIcon.yBottom;
    634                 if (gpihCreateMemPS(pa->hab, &szlPage, &hdcMem, &hpsMem))
     635                if (gpihCreateMemPS(pa->hab,
     636                                    &szlPage,
     637                                    &hdcMem,
     638                                    &hpsMem))
    635639                {
    636640                    // switch the memory PS to RGB mode too
     
    653657                            ptl.y = pa->rclIcon.yTop;
    654658                            GpiSetColor(hpsMem,
    655                                     lBkgndColor);
     659                                        lBkgndColor);
    656660                            GpiBox(hpsMem,
    657                                     DRO_FILL, // interior only
    658                                     &ptl,
    659                                     0, 0);    // no corner rounding
     661                                   DRO_FILL, // interior only
     662                                   &ptl,
     663                                   0, 0);    // no corner rounding
    660664
    661665                            /*
     
    689693
    690694                                if (hbmSource)
    691                                     gpihStretchBitmap(hpsMem,
    692                                                       hbmSource,
     695                                    gpihStretchBitmap(hpsMem,       // target
     696                                                      hbmSource,    // source
    693697                                                      NULL,     // use size of bitmap
    694                                                       &(pa->rclIcon),
     698                                                      &pa->rclIcon,
    695699                                                      ((pa->ulFlags & ANF_PROPORTIONAL)
    696700                                                            != 0));
     
    720724             */
    721725
    722             case WM_PAINT: {
     726            case WM_PAINT:
     727            {
    723728                RECTL rcl;
    724729                HPS hps = WinBeginPaint(hwndStatic, NULLHANDLE, &rcl);
Note: See TracChangeset for help on using the changeset viewer.