Ignore:
Timestamp:
Feb 4, 2002, 6:32:38 PM (24 years ago)
Author:
umoeller
Message:

Buncha fixes, and fixes for fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/dialog.h

    r136 r137  
    6262
    6363    #define SZL_AUTOSIZE                (-1)
    64     #define SZL_LARGEST_ROW_WIDTH       (-2)
    6564
    6665    #define CTL_COMMON_FONT             ((PCSZ)-1)
     
    115114                //    the largest row in the table. This is valid
    116115                //    for the CX field only.
    117                 // This field is IGNORED if the CONTROLDEF appears
    118                 // with a START_NEW_TABLE type in _DLGHITEM.
     116                // If the CONTROLDEF appears with a START_NEW_TABLE
     117                // type in _DLGHITEM (to specify a group table)
     118                // and they are not SZL_AUTOSIZE, they specify the
     119                // table size (to override the automatic formatting).
    119120
    120121        ULONG       ulSpacing;          // spacing around control
     
    242243    #define CONTROLDEF_ENTRYFIELD(pcsz, id, cx, cy) { WC_ENTRYFIELD, pcsz, \
    243244            WS_VISIBLE | WS_TABSTOP | ES_MARGIN | ES_AUTOSCROLL, \
    244             id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING + 5 }
     245            id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING }
    245246
    246247    #define CONTROLDEF_ENTRYFIELD_RO(pcsz, id, cx, cy) { WC_ENTRYFIELD, pcsz, \
    247248            WS_VISIBLE | WS_TABSTOP | ES_MARGIN | ES_READONLY | ES_AUTOSCROLL, \
    248             id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING + 5 }
     249            id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING }
    249250
    250251    #define CONTROLDEF_MLE(pcsz, id, cx, cy) { WC_MLE, pcsz, \
     
    252253            id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING }
    253254
     255    #define CONTROLDEF_LISTBOX(id, cx, cy) { WC_LISTBOX, NULL, \
     256            WS_VISIBLE | WS_TABSTOP | LS_HORZSCROLL | LS_NOADJUSTPOS, \
     257            id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING }
     258
    254259    #define CONTROLDEF_SPINBUTTON(id, cx, cy) { WC_SPINBUTTON, NULL, \
    255260            WS_VISIBLE | WS_TABSTOP | SPBS_MASTER | SPBS_NUMERICONLY | SPBS_JUSTCENTER | SPBS_FASTSPIN, \
     261            id, CTL_COMMON_FONT, 0, {cx, cy}, COMMON_SPACING }
     262
     263    #define CONTROLDEF_CONTAINER(id, cx, cy) { WC_CONTAINER, NULL, \
     264            WS_VISIBLE | WS_TABSTOP | 0, \
    256265            id, CTL_COMMON_FONT, 0, {cx, cy}, COMMON_SPACING }
    257266
Note: See TracChangeset for help on using the changeset viewer.