Changeset 197 for trunk/include/helpers/dialog.h
- Timestamp:
- Aug 9, 2002, 8:44:53 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/dialog.h
r195 r197 55 55 #define DLGERR_INVALID_CONTROL_TITLE (ERROR_DLG_FIRST + 9) 56 56 #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) 59 60 60 61 /* ****************************************************************** … … 67 68 68 69 #define CTL_COMMON_FONT ((PCSZ)-1) 69 70 #define ROW_VALIGN_MASK 0x000371 #define ROW_VALIGN_BOTTOM 0x000072 #define ROW_VALIGN_CENTER 0x000173 #define ROW_VALIGN_TOP 0x000274 70 75 71 /* … … 162 158 } DLGHITEMTYPE; 163 159 164 // a few handy macros for defining templates165 166 #define START_TABLE { TYPE_START_NEW_TABLE, 0 }167 168 // this macro is slightly insane, but performs type checking169 // in case the user gives a pointer which is not of CONTROLDEF170 #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 180 160 /* 181 161 *@@ DLGHITEM: … … 197 177 // TYPE_END_TABLE // end of table 198 178 199 ULONG ulData;179 const CONTROLDEF *pCtlDef; 200 180 // -- with TYPE_START_NEW_TABLE: if NULL, this starts 201 181 // an invisible table (for formatting only). … … 205 185 // with SS_GROUPBOX to create a group around 206 186 // the table. 187 188 ULONG fl; 189 // -- with TYPE_START_NEW_TABLE. TABLE_* formatting flags. 190 #define TABLE_ALIGN_COLUMNS 0x0100 191 207 192 // -- 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 209 198 } DLGHITEM, *PDLGHITEM; 210 199 211 200 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 } 212 219 213 220 /* ******************************************************************
Note:
See TracChangeset
for help on using the changeset viewer.