Ignore:
Timestamp:
Oct 18, 2001, 11:06:02 PM (24 years ago)
Author:
umoeller
Message:

misc changes

File:
1 edited

Legend:

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

    r106 r111  
    5151    #define DLGERR_TOO_MANY_TABLES_CLOSED       (DLGERR_FIRST + 6)
    5252    #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)
    5356
    5457    /* ******************************************************************
     
    98101                // flags for winhAdjustControls; any combination of
    99102                // XAC_MOVEX, XAC_MOVEY, XAC_SIZEX, XAC_SIZEY
     103                // @@todo not implemented yet
    100104
    101105        SIZEL       szlControlProposed;
     
    190194            id, CTL_COMMON_FONT,  0, {cx, cy}, COMMON_SPACING }
    191195
     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
    192200    #define CONTROLDEF_DEFPUSHBUTTON(pcsz, id, cx, cy) { WC_BUTTON, pcsz, \
    193201            WS_VISIBLE | WS_TABSTOP | BS_PUSHBUTTON | BS_DEFAULT, \
     
    215223
    216224    #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, \
    218234            id, CTL_COMMON_FONT, 0, { cx, cy }, COMMON_SPACING }
    219235
     
    224240    /* ******************************************************************
    225241     *
    226      *   APIs
     242     *   Dialog formatter entry points
    227243     *
    228244     ********************************************************************/
     
    257273    #define DFFL_CREATECONTROLS     0x0002
    258274
     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
    259314    /*
    260315     *@@ MSGBOXSTRINGS:
     
    334389                         const char *pcszFont);
    335390
     391    /* ******************************************************************
     392     *
     393     *   Dialog input handlers
     394     *
     395     ********************************************************************/
     396
    336397    VOID dlghSetPrevFocus(PVOID pvllWindows);
    337398
Note: See TracChangeset for help on using the changeset viewer.