Ignore:
Timestamp:
Apr 14, 2002, 1:42:05 AM (23 years ago)
Author:
umoeller
Message:

Lots of changes from the last three weeks.

File:
1 edited

Legend:

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

    r147 r153  
    6060#define INCL_WINSTATICS
    6161#define INCL_WINMENUS
     62#define INCL_WINENTRYFIELDS
    6263#define INCL_WINSCROLLBARS
    6364#define INCL_WINLISTBOXES
     
    23522353 *
    23532354 *@@added V0.9.0 [umoeller]
     2355 *@@changed V0.9.19 (2001-04-13) [umoeller]: added correlation for entry field repositioning, this was always off
    23542356 */
    23552357
     
    23722374        LONG    ldcx, ldcy;
    23732375        ULONG   cWindows = 0;
     2376
     2377        // V0.9.19 (2001-04-13) [umoeller]
     2378        LONG cxMarginEF = 3 * WinQuerySysValue(HWND_DESKTOP, SV_CXBORDER);
     2379        LONG cyMarginEF = 3 * WinQuerySysValue(HWND_DESKTOP, SV_CYBORDER);
    23742380
    23752381        // setup mode:
     
    23912397            {
    23922398                HWND hwndThis;
     2399                CHAR szClass[10];
    23932400                if (hwndThis = WinWindowFromID(hwndDlg, SHORT1FROMMP(*pmpThis)))
    23942401                {
    23952402                    WinQueryWindowPos(hwndThis, pswpThis);
     2403
     2404                    // correlate the stupid repositioning of entry fields
     2405                    // V0.9.19 (2001-04-13) [umoeller]
     2406                    if (    (WinQueryClassName(hwndThis, sizeof(szClass), szClass)
     2407                         && (!strcmp(szClass, "#6"))
     2408                         && (WinQueryWindowULong(hwndThis, QWL_STYLE) & ES_MARGIN))
     2409                       )
     2410                    {
     2411                        pswpThis->x += cxMarginEF;
     2412                        pswpThis->y += cyMarginEF;
     2413                        pswpThis->cx -= 2 * cxMarginEF;
     2414                        pswpThis->cy -= 2 * cyMarginEF;
     2415                    }
     2416
    23962417                    cWindows++;
    23972418                }
     
    24222443                 ul++)
    24232444            {
    2424                 HWND hwndThis = WinWindowFromID(hwndDlg, SHORT1FROMMP(*pmpThis));
    2425                 if (hwndThis)
     2445                HWND hwndThis;
     2446                if (hwndThis = WinWindowFromID(hwndDlg, SHORT1FROMMP(*pmpThis)))
    24262447                {
    24272448                    LONG    x = pswpThis->x,
Note: See TracChangeset for help on using the changeset viewer.