Ignore:
Timestamp:
Dec 8, 2001, 11:14:27 PM (24 years ago)
Author:
umoeller
Message:

Misc changes.

File:
1 edited

Legend:

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

    r113 r122  
    616616 *@@added V0.9.15 (2001-08-26) [umoeller]
    617617 *@@changed V0.9.16 (2001-10-15) [umoeller]: fixed ugly group table spacings
     618 *@@changed V0.9.16 (2001-12-08) [umoeller]: fixed entry field ES_MARGIN positioning
    618619 */
    619620
     
    701702            y -= 100;
    702703            cy += 100;
     704        }
     705        // the stupid entry field resizes itself if it has
     706        // the ES_MARGIN style, so correlate that too... dammit
     707        // V0.9.16 (2001-12-08) [umoeller]
     708        else if (    ((ULONG)pControlDef->pcszClass == 0xffff0006L)
     709                  && (flStyle & ES_MARGIN)
     710                )
     711        {
     712            LONG cxMargin = 3 * WinQuerySysValue(HWND_DESKTOP, SV_CXBORDER);
     713            LONG cyMargin = 3 * WinQuerySysValue(HWND_DESKTOP, SV_CYBORDER);
     714
     715            x += cxMargin;
     716            y += cxMargin;
    703717        }
    704718    }
     
    17281742 *@@changed V0.9.14 (2001-08-01) [umoeller]: fixed major memory leaks with nested tables
    17291743 *@@changed V0.9.14 (2001-08-21) [umoeller]: fixed default push button problems
     1744 *@@changed V0.9.16 (2001-12-06) [umoeller]: fixed bad owner if not direct desktop child
    17301745 */
    17311746
     
    17461761    PDLGPRIVATE  pDlgData = NULL;
    17471762
     1763    HWND        hwndDesktop = WinQueryDesktopWindow(NULLHANDLE, NULLHANDLE);
     1764                                        // works with a null HAB
     1765
    17481766    /*
    17491767     *  1) parse the table and create structures from it
     
    17651783            FRAMECDATA      fcData = {0};
    17661784            ULONG           flStyle = 0;
     1785            HWND            hwndOwnersParent;
    17671786
    17681787            fcData.cb = sizeof(FRAMECDATA);
     
    17801799                // V0.9.14 (2001-07-07) [umoeller]
    17811800                hwndOwner = NULLHANDLE;
     1801
     1802            // now, make sure the owner window is child of
     1803            // HWND_DESKTOP... if it is not, we'll only disable
     1804            // some dumb child window, which is not sufficient
     1805            // V0.9.16 (2001-12-06) [umoeller]
     1806            while (    (hwndOwner)
     1807                    && (hwndOwnersParent = WinQueryWindow(hwndOwner, QW_PARENT))
     1808                    && (hwndOwnersParent != hwndDesktop)
     1809                  )
     1810                hwndOwner = hwndOwnersParent;
    17821811
    17831812            if (!(pDlgData->hwndDlg = WinCreateWindow(HWND_DESKTOP,
Note: See TracChangeset for help on using the changeset viewer.