Ignore:
Timestamp:
Aug 9, 2002, 8:44:53 PM (23 years ago)
Author:
umoeller
Message:

Misc fixes.

File:
1 edited

Legend:

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

    r195 r197  
    5555    #define DLGERR_INVALID_CONTROL_TITLE        (ERROR_DLG_FIRST + 9)
    5656    #define DLGERR_INVALID_STATIC_BITMAP        (ERROR_DLG_FIRST + 10)
    57 
    58     #define ERROR_DLG_LAST                      (ERROR_DLG_FIRST + 10)
     57    #define DLGERR_INTEGRITY_BAD_COLUMN_INDEX   (ERROR_DLG_FIRST + 11)
     58
     59    #define ERROR_DLG_LAST                      (ERROR_DLG_FIRST + 11)
    5960
    6061    /* ******************************************************************
     
    6768
    6869    #define CTL_COMMON_FONT             ((PCSZ)-1)
    69 
    70     #define ROW_VALIGN_MASK             0x0003
    71     #define ROW_VALIGN_BOTTOM           0x0000
    72     #define ROW_VALIGN_CENTER           0x0001
    73     #define ROW_VALIGN_TOP              0x0002
    7470
    7571    /*
     
    162158    } DLGHITEMTYPE;
    163159
    164     // a few handy macros for defining templates
    165 
    166     #define START_TABLE         { TYPE_START_NEW_TABLE, 0 }
    167 
    168     // this macro is slightly insane, but performs type checking
    169     // in case the user gives a pointer which is not of CONTROLDEF
    170     #define START_GROUP_TABLE(pDef)   { TYPE_START_NEW_TABLE, \
    171                 (   (ULONG)(&(pDef)->pcszClass)   ) }
    172 
    173     #define END_TABLE           { TYPE_END_TABLE, 0 }
    174 
    175     #define START_ROW(fl)       { TYPE_START_NEW_ROW, fl }
    176 
    177     #define CONTROL_DEF(pDef)   { TYPE_CONTROL_DEF, \
    178                 (   (ULONG)(&(pDef)->pcszClass)   ) }
    179 
    180160    /*
    181161     *@@ DLGHITEM:
     
    197177                // TYPE_END_TABLE               // end of table
    198178
    199         ULONG           ulData;
     179        const CONTROLDEF *pCtlDef;
    200180                // -- with TYPE_START_NEW_TABLE: if NULL, this starts
    201181                //          an invisible table (for formatting only).
     
    205185                //          with SS_GROUPBOX to create a group around
    206186                //          the table.
     187
     188        ULONG           fl;
     189                // -- with TYPE_START_NEW_TABLE. TABLE_* formatting flags.
     190                        #define TABLE_ALIGN_COLUMNS         0x0100
     191
    207192                // -- with TYPE_START_NEW_ROW: ROW_* formatting flags.
    208                 // -- with TYPE_CONTROL_DEF: _CONTROLDEF pointer to a control definition
     193                        #define ROW_VALIGN_MASK             0x0003
     194                        #define ROW_VALIGN_BOTTOM           0x0000
     195                        #define ROW_VALIGN_CENTER           0x0001
     196                        #define ROW_VALIGN_TOP              0x0002
     197
    209198    } DLGHITEM, *PDLGHITEM;
    210199
    211200    typedef const struct _DLGHITEM *PCDLGHITEM;
     201
     202    // a few handy macros for defining templates
     203
     204    #define START_TABLE                     { TYPE_START_NEW_TABLE, NULL, 0 }
     205
     206    #define START_TABLE_ALIGN               { TYPE_START_NEW_TABLE, NULL, TABLE_ALIGN_COLUMNS }
     207                // added V0.9.20 (2002-08-08) [umoeller]
     208
     209    #define START_GROUP_TABLE(pDef)         { TYPE_START_NEW_TABLE, pDef, 0 }
     210
     211    #define START_GROUP_TABLE_ALIGN(pDef)   { TYPE_START_NEW_TABLE, pDef, TABLE_ALIGN_COLUMNS }
     212                // added V0.9.20 (2002-08-08) [umoeller]
     213
     214    #define END_TABLE                       { TYPE_END_TABLE, NULL, 0 }
     215
     216    #define START_ROW(fl)                   { TYPE_START_NEW_ROW, NULL, fl }
     217
     218    #define CONTROL_DEF(pDef)               { TYPE_CONTROL_DEF, pDef, 0 }
    212219
    213220    /* ******************************************************************
Note: See TracChangeset for help on using the changeset viewer.