Changeset 111 for trunk/include/helpers/dialog.h
- Timestamp:
- Oct 18, 2001, 11:06:02 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/dialog.h
r106 r111 51 51 #define DLGERR_TOO_MANY_TABLES_CLOSED (DLGERR_FIRST + 6) 52 52 #define DLGERR_CANNOT_CREATE_CONTROL (DLGERR_FIRST + 7) 53 #define DLGERR_ARRAY_TOO_SMALL (DLGERR_FIRST + 8) 54 #define DLGERR_INVALID_CONTROL_TITLE (DLGERR_FIRST + 9) 55 #define DLGERR_INVALID_STATIC_BITMAP (DLGERR_FIRST + 10) 53 56 54 57 /* ****************************************************************** … … 98 101 // flags for winhAdjustControls; any combination of 99 102 // XAC_MOVEX, XAC_MOVEY, XAC_SIZEX, XAC_SIZEY 103 // @@todo not implemented yet 100 104 101 105 SIZEL szlControlProposed; … … 190 194 id, CTL_COMMON_FONT, 0, {cx, cy}, COMMON_SPACING } 191 195 196 #define CONTROLDEF_TEXT_WORDBREAK(pcsz, id, cx) { WC_STATIC, pcsz, \ 197 WS_VISIBLE | SS_TEXT | DT_LEFT | DT_TOP | DT_WORDBREAK, \ 198 id, CTL_COMMON_FONT, 0, {cx, -1}, COMMON_SPACING } 199 192 200 #define CONTROLDEF_DEFPUSHBUTTON(pcsz, id, cx, cy) { WC_BUTTON, pcsz, \ 193 201 WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON | BS_DEFAULT, \ … … 215 223 216 224 #define CONTROLDEF_ENTRYFIELD(pcsz, id, cx, cy) { WC_ENTRYFIELD, pcsz, \ 217 WS_VISIBLE | WS_TABSTOP | ES_MARGIN, \ 225 WS_VISIBLE | WS_TABSTOP | ES_MARGIN | ES_AUTOSCROLL, \ 226 id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING + 5 } 227 228 #define CONTROLDEF_ENTRYFIELD_RO(pcsz, id, cx, cy) { WC_ENTRYFIELD, pcsz, \ 229 WS_VISIBLE | WS_TABSTOP | ES_MARGIN | ES_READONLY | ES_AUTOSCROLL, \ 230 id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING + 5 } 231 232 #define CONTROLDEF_MLE(pcsz, id, cx, cy) { WC_MLE, pcsz, \ 233 WS_VISIBLE | WS_TABSTOP | MLS_BORDER | MLS_IGNORETAB | MLS_WORDWRAP, \ 218 234 id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING } 219 235 … … 224 240 /* ****************************************************************** 225 241 * 226 * APIs242 * Dialog formatter entry points 227 243 * 228 244 ********************************************************************/ … … 257 273 #define DFFL_CREATECONTROLS 0x0002 258 274 275 /* ****************************************************************** 276 * 277 * Dialog arrays 278 * 279 ********************************************************************/ 280 281 /* 282 *@@ DLGARRAY: 283 * dialog array structure used with dlghCreateArray. 284 * See remarks there. 285 * 286 *@@added V0.9.16 (2001-10-15) [umoeller] 287 */ 288 289 typedef struct _DLGARRAY 290 { 291 DLGHITEM *paDlgItems; // array of DLGHITEM's, allocated once 292 // by dlghCreateArray 293 ULONG cDlgItemsMax, // copied from dlghCreateArray 294 cDlgItemsNow; // initially 0, raised after each 295 // dlghAppendToArray; pass this to the 296 // dialog formatter 297 } DLGARRAY, *PDLGARRAY; 298 299 APIRET dlghCreateArray(ULONG cMaxItems, 300 PDLGARRAY *ppArray); 301 302 APIRET dlghFreeArray(PDLGARRAY *ppArray); 303 304 APIRET dlghAppendToArray(PDLGARRAY pArray, 305 DLGHITEM *paItems, 306 ULONG cItems); 307 308 /* ****************************************************************** 309 * 310 * Standard dialogs 311 * 312 ********************************************************************/ 313 259 314 /* 260 315 *@@ MSGBOXSTRINGS: … … 334 389 const char *pcszFont); 335 390 391 /* ****************************************************************** 392 * 393 * Dialog input handlers 394 * 395 ********************************************************************/ 396 336 397 VOID dlghSetPrevFocus(PVOID pvllWindows); 337 398
Note:
See TracChangeset
for help on using the changeset viewer.