Ignore:
Timestamp:
May 19, 2001, 3:47:20 PM (24 years ago)
Author:
umoeller
Message:

New folder sorting. Updated folder refresh. Misc other changes.

File:
1 edited

Legend:

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

    r62 r69  
    33 *@@sourcefile winh.h:
    44 *      header file for winh.c (PM helper funcs). See remarks there.
     5 *
     6 *      Special #define's which this thing reacts to:
     7 *
     8 *      --  If WINH_STANDARDWRAPPERS is defined to anything, this include
     9 *          file maps a number of freqently API calls (such as WinSendMsg)
     10 *          to winh* equivalents to reduce the amount of fixup records
     11 *          in the final executable.
    512 *
    613 *      Note: Version numbering in this file relates to XWorkplace version
     
    6673    /* ******************************************************************
    6774     *
     75     *   Wrappers
     76     *
     77     ********************************************************************/
     78
     79    // if WINH_STANDARDWRAPPERS is #define'd before including winh.h,
     80    // all the following Win* API calls are redirected to the winh*
     81    // counterparts
     82
     83    #ifdef WINH_STANDARDWRAPPERS
     84
     85        MRESULT _Optlink winhSendMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
     86        #define WinSendMsg(a,b,c,d) winhSendMsg((a),(b),(c),(d))
     87
     88        BOOL _Optlink winhPostMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
     89        #define WinPostMsg(a,b,c,d) winhPostMsg((a),(b),(c),(d))
     90
     91        HWND _Optlink winhWindowFromID(HWND hwnd, ULONG id);
     92        #define WinWindowFromID(a,b) winhWindowFromID((a),(b))
     93
     94        HWND _Optlink winhQueryWindow(HWND hwnd, LONG lCode);
     95        #define WinQueryWindow(a,b) winhQueryWindow((a),(b))
     96
     97    #endif
     98
     99    /* ******************************************************************
     100     *
    68101     *   Macros
    69102     *
     
    81114    WinMessageBox(HWND_DESKTOP, HWND_DESKTOP, ((PSZ)text), ((PSZ)title), 0, MB_YESNO | MB_ICONQUESTION | MB_MOVEABLE)
    82115
    83     #define winhSetDlgItemChecked(hwnd, id, bCheck) \
     116    // made these functions V0.9.12 (2001-05-18) [umoeller]
     117    /* #define winhSetDlgItemChecked(hwnd, id, bCheck) \
    84118            WinSendDlgItemMsg((hwnd), (id), BM_SETCHECK, MPFROMSHORT(bCheck), MPNULL)
    85 
    86119    #define winhIsDlgItemChecked(hwnd, id) \
    87120            (SHORT1FROMMR(WinSendDlgItemMsg((hwnd), (id), BM_QUERYCHECK, MPNULL, MPNULL)))
     121       */
    88122
    89123    #define winhSetMenuItemChecked(hwndMenu, usId, bCheck) \
     
    94128            WinShowWindow(WinWindowFromID(hwnd, id), show)
    95129
    96     #define winhEnableDlgItem(hwndDlg, ulId, Enable) \
     130    // made these functions V0.9.12 (2001-05-18) [umoeller]
     131    /* #define winhEnableDlgItem(hwndDlg, ulId, Enable) \
    97132            WinEnableWindow(WinWindowFromID(hwndDlg, ulId), Enable)
    98 
    99133    #define winhIsDlgItemEnabled(hwndDlg, ulId) \
    100134            WinIsWindowEnabled(WinWindowFromID(hwndDlg, ulId))
     135        */
    101136
    102137    #define winhSetDlgItemFocus(hwndDlg, ulId) \
     
    113148    /* ******************************************************************
    114149     *
     150     *   Generics
     151     *
     152     ********************************************************************/
     153
     154    BOOL XWPENTRY winhSetDlgItemChecked(HWND hwnd, SHORT id, SHORT bCheck);
     155
     156    SHORT XWPENTRY winhIsDlgItemChecked(HWND hwnd, SHORT id);
     157
     158    BOOL XWPENTRY winhEnableDlgItem(HWND hwndDlg, SHORT id, BOOL fEnable);
     159
     160    BOOL XWPENTRY winhIsDlgItemEnabled(HWND hwndDlg, SHORT id);
     161
     162    /* ******************************************************************
     163     *
    115164     *   Menu helpers
    116165     *
    117166     ********************************************************************/
     167
     168    #ifdef INCL_WINMENUS
     169        BOOL XWPENTRY winhQueryMenuItem(HWND hwndMenu,
     170                                        USHORT usItemID,
     171                                        BOOL fSearchSubmenus,
     172                                        PMENUITEM pmi);
     173    #endif
    118174
    119175    /*
     
    772828
    773829    ULONG XWPENTRY winhResetWPS(HAB hab);
     830
    774831#endif
    775832
Note: See TracChangeset for help on using the changeset viewer.