Ignore:
Timestamp:
Jun 28, 2001, 7:13:56 PM (24 years ago)
Author:
umoeller
Message:

Many misc updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/winh.c

    r81 r83  
    120120
    121121    /*
     122     *@@ winhSendDlgItemMsg:
     123     *      wrapper for WinSendDlgItemMsg.
     124     *
     125     *      If WINH_STANDARDWRAPPERS is #defined before
     126     *      including win.h, all WinSendMsg calls are
     127     *      redefined to use this wrapper instead. This
     128     *      reduces the amount of external fixups required
     129     *      for loading the module.
     130     *
     131     *@@added V0.9.13 (2001-06-27) [umoeller]
     132     */
     133
     134    MRESULT winhSendDlgItemMsg(HWND hwnd, ULONG id, ULONG msg, MPARAM mp1, MPARAM mp2)
     135    {
     136        return ((WinSendDlgItemMsg)(hwnd, id, msg, mp1, mp2));
     137    }
     138
     139    /*
    122140     *@@ winhPostMsg:
    123141     *      wrapper for WinPostMsg.
     
    240258 *
    241259 ********************************************************************/
    242 
    243 /*
    244  *@@ winhSetDlgItemChecked:
    245  *      checks a check box.
    246  *
    247  *      This has been turned into a real function
    248  *      because this is used hundreds of times in
    249  *      XWP, and each WinSendDlgItemMsg in each
    250  *      macro produced a fixup relocation record.
    251  *
    252  *@@added V0.9.12 (2001-05-18) [umoeller]
    253  */
    254 
    255 BOOL winhSetDlgItemChecked(HWND hwnd,       // in: dialog
    256                            SHORT id,        // in: dialog item ID
    257                            SHORT bCheck)    // in: 0, 1, or (for tri-state) 2
    258 {
    259     return ((BOOL)WinSendDlgItemMsg(hwnd,
    260                                     id,
    261                                     BM_SETCHECK,
    262                                     MPFROMSHORT(bCheck),
    263                                     MPNULL));
    264 }
    265 
    266 /*
    267  *@@ winhIsDlgItemChecked:
    268  *      returns the current check state of the
    269  *      specified check box, which can be 0, 1,
    270  *      or (for tri-state checkboxes) 2.
    271  *
    272  *@@added V0.9.12 (2001-05-18) [umoeller]
    273  */
    274 
    275 SHORT winhIsDlgItemChecked(HWND hwnd,       // in: dialog
    276                            SHORT id)        // in: dialog item ID
    277 {
    278     return (SHORT1FROMMR(WinSendDlgItemMsg(hwnd,
    279                                            id,
    280                                            BM_QUERYCHECK,
    281                                            MPNULL,
    282                                            MPNULL)));
    283 }
    284260
    285261/*
Note: See TracChangeset for help on using the changeset viewer.