Changeset 156


Ignore:
Timestamp:
Apr 18, 2002, 9:53:28 PM (23 years ago)
Author:
umoeller
Message:

Misc fixes.

Location:
trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/encodings/base.h

    r147 r156  
    113113    } ENCBYTECOUNT;
    114114
     115    int encGetTable(ENCID id,
     116                    PXWPENCODINGMAP *ppMap,
     117                    unsigned long *pcEntries);
     118
    115119    ENCID encFindIdForCodepage(unsigned short usCodepage,
    116                                        const char **ppcszDescription,
    117                                        ENCBYTECOUNT *pByteCount);
     120                               const char **ppcszDescription,
     121                               ENCBYTECOUNT *pByteCount);
    118122
    119123    PCONVERSION encCreateCodec(ENCID id);
  • trunk/include/helpers/dialog.h

    r155 r156  
    312312            id, CTL_COMMON_FONT, 0, {cx, cy}, COMMON_SPACING }
    313313
     314    // the following require INCL_WINSTDSLIDER
     315
     316    #define CONTROLDEF_SLIDER(id, cx, cy, pctldata) { WC_SLIDER, NULL, \
     317            WS_VISIBLE | WS_TABSTOP | WS_GROUP | SLS_HORIZONTAL | SLS_PRIMARYSCALE1 \
     318            | SLS_BUTTONSRIGHT | SLS_SNAPTOINCREMENT, \
     319            id, CTL_COMMON_FONT, 0, {cx, cy}, COMMON_SPACING, pctldata }
     320
    314321    /* ******************************************************************
    315322     *
  • trunk/include/helpers/winh.h

    r155 r156  
    837837        typedef PSWBLOCK XWPENTRY WINHQUERYSWITCHLIST(HAB hab);
    838838        typedef WINHQUERYSWITCHLIST *PWINHQUERYSWITCHLIST;
     839
     840        HSWITCH XWPENTRY winhHSWITCHfromHAPP(HAPP happ);
    839841    #endif
    840842
  • trunk/src/helpers/dialog.c

    r155 r156  
    475475 *@@changed V0.9.16 (2001-10-15) [umoeller]: added APIRET
    476476 *@@changed V0.9.16 (2002-02-02) [umoeller]: added support for explicit group size
     477 *@@changed V0.9.19 (2002-04-17) [umoeller]: fixes for the STUPID drop-down comboboxes
    477478 */
    478479
     
    714715 *@@changed V0.9.16 (2001-10-15) [umoeller]: fixed ugly group table spacings
    715716 *@@changed V0.9.16 (2001-12-08) [umoeller]: fixed entry field ES_MARGIN positioning
     717 *@@changed V0.9.19 (2002-04-17) [umoeller]: fixes for the STUPID drop-down comboboxes
    716718 */
    717719
  • trunk/src/helpers/encodings.c

    r155 r156  
    126126
    127127/*
    128  *@@ FindEntry:
     128 *@@ encGetTable:
    129129 *
    130130 *@@added V0.9.18 (2002-03-08) [umoeller]
    131131 */
    132132
    133 static int FindEntry(ENCID id,
    134                      PXWPENCODINGMAP *ppMap,
    135                      unsigned long *pcEntries)
     133int encGetTable(ENCID id,
     134                PXWPENCODINGMAP *ppMap,
     135                unsigned long *pcEntries)
    136136{
    137137    unsigned long ul;
     
    161161ENCID encFindIdForCodepage(unsigned short usCodepage,       // in: codepage to find
    162162                           const char **ppcszDescription,   // out: codepage description; ptr can be NULL
    163                            ENCBYTECOUNT *pByteCount)        // out: SINGLE or DOUBLE
     163                           ENCBYTECOUNT *pByteCount)        // out: SINGLE or DOUBLE; ptr can be NULL
    164164{
    165165    unsigned long ul;
     
    246246    unsigned long cArrayEntries;
    247247
    248     if (FindEntry(id,
    249                   &pEncodingMap,
    250                   &cArrayEntries))
     248    if (encGetTable(id,
     249                    &pEncodingMap,
     250                    &cArrayEntries))
    251251    {
    252252        unsigned short usHighestCP = 0,
  • trunk/src/helpers/winh.c

    r155 r156  
    42524252}
    42534253
     4254typedef HSWITCH APIENTRY WINHSWITCHFROMHAPP(HAPP happ);
     4255
     4256/*
     4257 *@@ winhHSWITCHfromHAPP:
     4258 *      resolves and calls the undocumented
     4259 *      WinHSWITCHfromHAPP API.
     4260 *
     4261 *@@added V0.9.19 (2002-04-17) [umoeller]
     4262 */
     4263
     4264HSWITCH winhHSWITCHfromHAPP(HAPP happ)
     4265{
     4266    static WINHSWITCHFROMHAPP *pWinHSWITCHfromHAPP = NULL;
     4267
     4268    if (!pWinHSWITCHfromHAPP)
     4269        // first call: import WinHSWITCHfromHAPP
     4270        // WinHSWITCHfromHAPP PMMERGE.5199
     4271        doshQueryProcAddr("PMMERGE",
     4272                          5199,
     4273                          (PFN*)&pWinHSWITCHfromHAPP);
     4274
     4275    if (pWinHSWITCHfromHAPP)
     4276        return pWinHSWITCHfromHAPP(happ);
     4277
     4278    return NULLHANDLE;
     4279}
     4280
    42544281/*
    42554282 *@@ winhQueryTasklistWindow:
Note: See TracChangeset for help on using the changeset viewer.