Ignore:
Timestamp:
Dec 9, 2000, 8:19:42 PM (25 years ago)
Author:
umoeller
Message:

Major updates; timers, LVM, miscellaneous.

File:
1 edited

Legend:

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

    r7 r14  
    1111
    1212/*      Copyright (C) 1997-2000 Ulrich M”ller.
    13  *      This file is part of the XWorkplace source package.
    14  *      XWorkplace is free software; you can redistribute it and/or modify
     13 *      This file is part of the "XWorkplace helpers" source package.
     14 *      This is free software; you can redistribute it and/or modify
    1515 *      it under the terms of the GNU General Public License as published
    1616 *      by the Free Software Foundation, in version 2 as it comes in the
     
    3434 *@@include #define INCL_WINSYS
    3535 *@@include #define INCL_WINSHELLDATA
     36 *@@include #define INCL_WINSWITCHLIST      // for winhQuerySwitchList
    3637 *@@include #define INCL_WINPROGRAMLIST     // for winhStartApp
    3738 *@@include #define INCL_WINHELP            // for help manager helpers
     
    4748    #define WINH_HEADER_INCLUDED
    4849
    49     /* ******************************************************************
    50      *                                                                  *
    51      *   Declarations                                                   *
    52      *                                                                  *
     50    #ifndef XWPENTRY
     51        #error You must define XWPENTRY to contain the standard linkage for the XWPHelpers.
     52    #endif
     53
     54    /* ******************************************************************
     55     *
     56     *   Declarations
     57     *
    5358     ********************************************************************/
    5459
     
    6267
    6368    /* ******************************************************************
    64      *                                                                  *
    65      *   Macros                                                         *
    66      *                                                                  *
     69     *
     70     *   Macros
     71     *
    6772     ********************************************************************/
    6873
     
    101106
    102107    /* ******************************************************************
    103      *                                                                  *
    104      *   Menu helpers                                                   *
    105      *                                                                  *
     108     *
     109     *   Menu helpers
     110     *
    106111     ********************************************************************/
    107112
     
    121126                    HWND_DESKTOP, HWND_TOP, 0, 0, 0)
    122127
    123     SHORT winhInsertMenuItem(HWND hwndMenu,
    124                              SHORT iPosition,
    125                              SHORT sItemId,
    126                              PSZ pszItemTitle,
    127                              SHORT afStyle,
    128                              SHORT afAttr);
    129 
    130     HWND winhInsertSubmenu(HWND hwndMenu,
    131                            ULONG iPosition,
    132                            SHORT sMenuId,
    133                            PSZ pszSubmenuTitle,
    134                            USHORT afMenuStyle,
    135                            SHORT sItemId,
    136                            PSZ pszItemTitle,
    137                            USHORT afItemStyle,
    138                            USHORT afAttribute);
     128    SHORT XWPENTRY winhInsertMenuItem(HWND hwndMenu,
     129                                      SHORT iPosition,
     130                                      SHORT sItemId,
     131                                      PSZ pszItemTitle,
     132                                      SHORT afStyle,
     133                                      SHORT afAttr);
     134
     135    HWND XWPENTRY winhInsertSubmenu(HWND hwndMenu,
     136                                    ULONG iPosition,
     137                                    SHORT sMenuId,
     138                                    PSZ pszSubmenuTitle,
     139                                    USHORT afMenuStyle,
     140                                    SHORT sItemId,
     141                                    PSZ pszItemTitle,
     142                                    USHORT afItemStyle,
     143                                    USHORT afAttribute);
    139144
    140145    /*
     
    165170            (SHORT)WinSendMsg(hwndMenu, MM_DELETEITEM, MPFROM2SHORT(sItemId, FALSE), 0)
    166171
    167     SHORT winhInsertMenuSeparator(HWND hMenu,
    168                                   SHORT iPosition,
    169                                   SHORT sId);
    170 
    171     PSZ winhQueryMenuItemText(HWND hwndMenu,
    172                               USHORT usItemID);
    173 
    174     BOOL winhAppend2MenuItemText(HWND hwndMenu,
    175                                  USHORT usItemID,
    176                                  const char *pcszAppend,
    177                                  BOOL fTab);
    178 
    179     VOID winhMenuRemoveEllipse(HWND hwndMenu,
    180                                USHORT usItemId);
    181 
    182     SHORT winhQueryItemUnderMouse(HWND hwndMenu, POINTL *pptlMouse, RECTL *prtlItem);
    183 
    184     /* ******************************************************************
    185      *                                                                  *
    186      *   Slider helpers                                                 *
    187      *                                                                  *
    188      ********************************************************************/
    189 
    190     HWND winhReplaceWithLinearSlider(HWND hwndParent,
    191                                      HWND hwndOwner,
    192                                      HWND hwndInsertAfter,
    193                                      ULONG ulID,
    194                                      ULONG ulSliderStyle,
    195                                      ULONG ulTickCount);
    196 
    197     BOOL winhSetSliderTicks(HWND hwndSlider,
    198                             MPARAM mpEveryOther,
    199                             ULONG ulPixels);
     172    SHORT XWPENTRY winhInsertMenuSeparator(HWND hMenu,
     173                                           SHORT iPosition,
     174                                           SHORT sId);
     175
     176    PSZ XWPENTRY winhQueryMenuItemText(HWND hwndMenu,
     177                                       USHORT usItemID);
     178
     179    BOOL XWPENTRY winhAppend2MenuItemText(HWND hwndMenu,
     180                                          USHORT usItemID,
     181                                          const char *pcszAppend,
     182                                          BOOL fTab);
     183
     184    VOID XWPENTRY winhMenuRemoveEllipse(HWND hwndMenu,
     185                                        USHORT usItemId);
     186
     187    SHORT XWPENTRY winhQueryItemUnderMouse(HWND hwndMenu, POINTL *pptlMouse, RECTL *prtlItem);
     188
     189    /* ******************************************************************
     190     *
     191     *   Slider helpers
     192     *
     193     ********************************************************************/
     194
     195    HWND XWPENTRY winhReplaceWithLinearSlider(HWND hwndParent,
     196                                              HWND hwndOwner,
     197                                              HWND hwndInsertAfter,
     198                                              ULONG ulID,
     199                                              ULONG ulSliderStyle,
     200                                              ULONG ulTickCount);
     201
     202    BOOL XWPENTRY winhSetSliderTicks(HWND hwndSlider, MPARAM mpEveryOther, ULONG ulPixels);
    200203
    201204    /*
     
    230233                              0))
    231234
    232     HWND winhReplaceWithCircularSlider(HWND hwndParent,
    233                            HWND hwndOwner,
    234                            HWND hwndInsertAfter,
    235                            ULONG ulID,
    236                            ULONG ulSliderStyle,
    237                            SHORT sMin,
    238                            SHORT sMax,
    239                            USHORT usIncrement,
    240                            USHORT usTicksEvery);
    241 
    242     /* ******************************************************************
    243      *                                                                  *
    244      *   Spin button helpers                                            *
    245      *                                                                  *
    246      ********************************************************************/
    247 
    248     VOID winhSetDlgItemSpinData(HWND hwndDlg,
    249                                ULONG idSpinButton,
    250                                ULONG min,
    251                                ULONG max,
    252                                ULONG current);
    253 
    254     LONG winhAdjustDlgItemSpinData(HWND hwndDlg,
    255                                    USHORT usItemID,
    256                                    LONG lGrid,
    257                                    USHORT usNotifyCode);
    258 
    259     /* ******************************************************************
    260      *                                                                  *
    261      *   Entry field helpers                                            *
    262      *                                                                  *
     235    HWND XWPENTRY winhReplaceWithCircularSlider(HWND hwndParent,
     236                                                HWND hwndOwner,
     237                                                HWND hwndInsertAfter,
     238                                                ULONG ulID,
     239                                                ULONG ulSliderStyle,
     240                                                SHORT sMin,
     241                                                SHORT sMax,
     242                                                USHORT usIncrement,
     243                                                USHORT usTicksEvery);
     244
     245    /* ******************************************************************
     246     *
     247     *   Spin button helpers
     248     *
     249     ********************************************************************/
     250
     251    VOID XWPENTRY winhSetDlgItemSpinData(HWND hwndDlg,
     252                                         ULONG idSpinButton,
     253                                         ULONG min,
     254                                         ULONG max,
     255                                         ULONG current);
     256
     257    LONG XWPENTRY winhAdjustDlgItemSpinData(HWND hwndDlg,
     258                                            USHORT usItemID,
     259                                            LONG lGrid,
     260                                            USHORT usNotifyCode);
     261
     262    /* ******************************************************************
     263     *
     264     *   Entry field helpers
     265     *
    263266     ********************************************************************/
    264267
     
    302305
    303306    /* ******************************************************************
    304      *                                                                  *
    305      *   List box helpers                                               *
    306      *                                                                  *
    307      ********************************************************************/
    308 
    309     /*
    310      *@@ winhQueryLboxItemCount:
     307     *
     308     *   List box helpers
     309     *
     310     ********************************************************************/
     311
     312    /*  The following macros are defined in the OS/2 headers for
     313        list boxes:
     314
     315        LONG WinQueryLboxCount(HWND hwndLbox);
     316                    // wrapper around LM_QUERYITEMCOUNT;
     317                    // list box item count
     318
     319        SHORT WinQueryLboxItemTextLength(HWND hwndLbox,
     320                                         SHORT index); // item index, starting from 0
     321                    // wrapper around LM_QUERYITEMTEXTLENGTH;
     322                    // returns length of item text, excluding NULL character
     323
     324        LONG WinQueryLboxItemText(HWND hwndLbox,
     325                                  SHORT index,      // item index, starting from 0
     326                                  PSZ psz,          // buffer
     327                                  PSZ cchMax);      // size of buffer, incl. null
     328                    // wrapper around LM_QUERYITEMTEXT;
     329                    // returns length of item text, excluding NULL character
     330
     331        BOOL WinSetLboxItemText(HWND hwndLbox,
     332                                LONG index,
     333                                PSZ psz);
     334                    // wrapper around LM_SETITEMTEXT
     335
     336        LONG WinInsertLboxItem(HWND hwndLbox,
     337                               LONG index,          // new item index, starting from 0
     338                                                    // or LIT_END
     339                                                    // or LIT_SORTASCENDING
     340                                                    // or LIT_SORTDESCENDING
     341                               PSZ psz)
     342                    // wrapper around LM_INSERTITEM;
     343                    // returns LIT_MEMERROR, LIT_ERROR, or zero-based index
     344
     345        LONG WinDeleteLboxItem(HWND hwndLbox,
     346                               LONG index);         // item index, starting from 0
     347
     348        LONG WinQueryLboxSelectedItem(HWND hwndLbox);
     349                    // wrapper around LM_QUERYSELECTION;
     350                    // works with single selection only,
     351                    // use winhQueryLboxSelectedItem instead
     352    */
     353
     354    /*
     355     * winhQueryLboxItemCount:
    311356     *      returns the no. of items in the listbox
    312357     *      as a SHORT.
    313358     *
    314      *@@added V0.9.1 (99-12-14) [umoeller]
    315      */
    316 
    317     #define winhQueryLboxItemCount(hwndListBox)                 \
    318         (SHORT)WinSendMsg(hwndListBox, LM_QUERYITEMCOUNT, 0, 0)
     359     *added V0.9.1 (99-12-14) [umoeller]
     360     */
     361
     362    // #define winhQueryLboxItemCount(hwndListBox)
     363    // (SHORT)WinSendMsg(hwndListBox, LM_QUERYITEMCOUNT, 0, 0)
     364
     365    // removed, use WinQueryLboxCount
    319366
    320367    /*
     
    349396     *
    350397     *      To have the cursored item returned, use LIT_CURSOR.
     398     *
     399     *      For single selection, you can also use
     400     *      WinQueryLboxSelectedItem from the OS/2 PM headers.
    351401     */
    352402
     
    375425                            (MPARAM)(fSelect)))
    376426
    377     ULONG winhLboxSelectAll(HWND hwndListBox,
    378                             BOOL fSelect);
     427    ULONG XWPENTRY winhLboxSelectAll(HWND hwndListBox, BOOL fSelect);
    379428
    380429    /*
     
    398447                              MPFROMSHORT(sItemIndex), (MPARAM)NULL)
    399448
    400     PSZ winhQueryLboxItemText(HWND hwndListbox,
    401                               SHORT sIndex);
    402 
    403     BOOL winhMoveLboxItem(HWND hwndSource,
    404                           SHORT sSourceIndex,
    405                           HWND hwndTarget,
    406                           SHORT sTargetIndex,
    407                           BOOL fSelectTarget);
    408 
    409     /* ******************************************************************
    410      *                                                                  *
    411      *   Scroll bar helpers                                             *
    412      *                                                                  *
    413      ********************************************************************/
    414 
    415     BOOL winhUpdateScrollBar(HWND hwndScrollBar,
    416                              ULONG ulWinPels,
    417                              ULONG ulViewportPels,
    418                              ULONG ulCurUnitOfs,
    419                              BOOL fAutoHide);
    420 
    421     BOOL winhHandleScrollMsg(HWND hwnd2Scroll,
    422                              HWND hwndScrollBar,
    423                              PLONG plCurUnitOfs,
    424                              PRECTL prcl2Scroll,
    425                              LONG ulViewportPels,
    426                              USHORT usLineStepUnits,
    427                              ULONG msg,
    428                              MPARAM mp2);
    429 
    430     BOOL winhProcessScrollChars(HWND hwndClient,
    431                                 HWND hwndVScroll,
    432                                 HWND hwndHScroll,
    433                                 MPARAM mp1,
    434                                 MPARAM mp2,
    435                                 ULONG ulVertMax,
    436                                 ULONG ulHorzMax);
    437 
    438     /* ******************************************************************
    439      *                                                                  *
    440      *   Window positioning helpers                                     *
    441      *                                                                  *
    442      ********************************************************************/
    443 
    444     BOOL winhSaveWindowPos(HWND hwnd,
    445                            HINI hIni,
    446                            PSZ pszApp,
    447                            PSZ pszKey);
    448 
    449     BOOL winhRestoreWindowPos(HWND hwnd,
    450                            HINI hIni,
    451                            PSZ pszApp,
    452                            PSZ pszKey,
    453                            ULONG fl);
     449    PSZ XWPENTRY winhQueryLboxItemText(HWND hwndListbox, SHORT sIndex);
     450
     451    BOOL XWPENTRY winhMoveLboxItem(HWND hwndSource,
     452                                   SHORT sSourceIndex,
     453                                   HWND hwndTarget,
     454                                   SHORT sTargetIndex,
     455                                   BOOL fSelectTarget);
     456
     457    /* ******************************************************************
     458     *
     459     *   Scroll bar helpers
     460     *
     461     ********************************************************************/
     462
     463    BOOL XWPENTRY winhUpdateScrollBar(HWND hwndScrollBar,
     464                                      ULONG ulWinPels,
     465                                      ULONG ulViewportPels,
     466                                      ULONG ulCurUnitOfs,
     467                                      BOOL fAutoHide);
     468
     469    BOOL XWPENTRY winhHandleScrollMsg(HWND hwnd2Scroll,
     470                                      HWND hwndScrollBar,
     471                                      PLONG plCurUnitOfs,
     472                                      PRECTL prcl2Scroll,
     473                                      LONG ulViewportPels,
     474                                      USHORT usLineStepUnits,
     475                                      ULONG msg,
     476                                      MPARAM mp2);
     477
     478    BOOL XWPENTRY winhProcessScrollChars(HWND hwndClient,
     479                                         HWND hwndVScroll,
     480                                         HWND hwndHScroll,
     481                                         MPARAM mp1,
     482                                         MPARAM mp2,
     483                                         ULONG ulVertMax,
     484                                         ULONG ulHorzMax);
     485
     486    /* ******************************************************************
     487     *
     488     *   Window positioning helpers
     489     *
     490     ********************************************************************/
     491
     492    BOOL XWPENTRY winhSaveWindowPos(HWND hwnd, HINI hIni, PSZ pszApp, PSZ pszKey);
     493
     494    BOOL XWPENTRY winhRestoreWindowPos(HWND hwnd, HINI hIni, PSZ pszApp, PSZ pszKey, ULONG fl);
    454495
    455496    #define XAC_MOVEX       0x0001
     
    470511    } XADJUSTCTRLS, *PXADJUSTCTRLS;
    471512
    472     BOOL winhAdjustControls(HWND hwndDlg,
    473                             MPARAM *pmpFlags,
    474                             ULONG ulCount,
    475                             PSWP pswpNew,
    476                             PXADJUSTCTRLS pxac);
    477 
    478     void winhCenterWindow(HWND hwnd);
    479 
    480     /* ******************************************************************
    481      *                                                                  *
    482      *   Presparams helpers                                             *
    483      *                                                                  *
    484      ********************************************************************/
    485 
    486     PSZ winhQueryWindowFont(HWND hwnd);
    487 
    488     BOOL winhSetWindowFont(HWND hwnd,
    489                            PSZ pszFont);
     513    BOOL XWPENTRY winhAdjustControls(HWND hwndDlg,
     514                                     MPARAM *pmpFlags,
     515                                     ULONG ulCount,
     516                                     PSWP pswpNew,
     517                                     PXADJUSTCTRLS pxac);
     518
     519    void XWPENTRY winhCenterWindow(HWND hwnd);
     520    typedef void XWPENTRY WINHCENTERWINDOW(HWND hwnd);
     521    typedef WINHCENTERWINDOW *PWINHCENTERWINDOW;
     522
     523    HWND XWPENTRY winhFindWindowBelow(HWND hwndFind);
     524
     525    /* ******************************************************************
     526     *
     527     *   Presparams helpers
     528     *
     529     ********************************************************************/
     530
     531    PSZ XWPENTRY winhQueryWindowFont(HWND hwnd);
     532    typedef PSZ XWPENTRY WINHQUERYWINDOWFONT(HWND hwnd);
     533    typedef WINHQUERYWINDOWFONT *PWINHQUERYWINDOWFONT;
     534
     535    BOOL XWPENTRY winhSetWindowFont(HWND hwnd, const char *pcszFont);
     536    typedef BOOL XWPENTRY WINHSETWINDOWFONT(HWND hwnd, const char *pcszFont);
     537    typedef WINHSETWINDOWFONT *PWINHSETWINDOWFONT;
    490538
    491539    /*
     
    502550            (winhSetWindowFont(WinWindowFromID(hwnd, usId), pszFont))
    503551
    504     ULONG winhSetControlsFont(HWND hwndDlg,
    505                               SHORT usIDMin,
    506                               SHORT usIDMax,
    507                               const char *pcszFont);
     552    ULONG XWPENTRY winhSetControlsFont(HWND hwndDlg, SHORT usIDMin, SHORT usIDMax, const char *pcszFont);
    508553
    509554    #ifdef INCL_WINSYS
    510         BOOL winhStorePresParam(PPRESPARAMS *pppp,
    511                                 ULONG ulAttrType,
    512                                 ULONG cbData,
    513                                 PVOID pData);
     555        BOOL XWPENTRY winhStorePresParam(PPRESPARAMS *pppp,
     556                                         ULONG ulAttrType,
     557                                         ULONG cbData,
     558                                         PVOID pData);
    514559    #endif
    515560
    516     LONG winhQueryPresColor(HWND    hwnd,
    517                             ULONG   ulPP,
    518                             BOOL    fInherit,
    519                             LONG    lSysColor);
    520 
    521     /* ******************************************************************
    522      *                                                                  *
    523      *   Help instance helpers                                          *
    524      *                                                                  *
     561    LONG XWPENTRY winhQueryPresColor(HWND hwnd, ULONG ulPP, BOOL fInherit, LONG lSysColor);
     562    typedef LONG XWPENTRY WINHQUERYPRESCOLOR(HWND hwnd, ULONG ulPP, BOOL fInherit, LONG lSysColor);
     563    typedef WINHQUERYPRESCOLOR *PWINHQUERYPRESCOLOR;
     564
     565    /* ******************************************************************
     566     *
     567     *   Help instance helpers
     568     *
    525569     ********************************************************************/
    526570
    527571    #ifdef INCL_WINHELP
    528         HWND winhCreateHelp(HWND hwndFrame,
    529                             PSZ pszFileName,
    530                             HMODULE hmod,
    531                             PHELPTABLE pHelpTable,
    532                             PSZ pszWindowTitle);
    533 
    534         void winhDestroyHelp(HWND hwndHelp,
    535                              HWND hwndFrame);
     572        HWND XWPENTRY winhCreateHelp(HWND hwndFrame,
     573                                     PSZ pszFileName,
     574                                     HMODULE hmod,
     575                                     PHELPTABLE pHelpTable,
     576                                     PSZ pszWindowTitle);
     577
     578        void XWPENTRY winhDestroyHelp(HWND hwndHelp, HWND hwndFrame);
    536579    #endif
    537580
     
    543586
    544587    #ifdef INCL_WINPROGRAMLIST
    545         HAPP winhStartApp(HWND hwndNotify,
    546                           const PROGDETAILS *pcProgDetails);
     588        HAPP XWPENTRY winhStartApp(HWND hwndNotify, const PROGDETAILS *pcProgDetails);
    547589    #endif
    548590
    549     BOOL winhAnotherInstance(PSZ pszSemName,
    550                              BOOL fSwitch);
    551 
    552     HSWITCH winhAddToTasklist(HWND hwnd,
    553                               HPOINTER hIcon);
    554 
    555     /* ******************************************************************
    556      *                                                                  *
    557      *   Miscellaneous                                                  *
    558      *                                                                  *
    559      ********************************************************************/
    560 
    561     VOID winhSleep(HAB hab,
    562                    ULONG ulSleep);
     591    BOOL XWPENTRY winhAnotherInstance(PSZ pszSemName, BOOL fSwitch);
     592
     593    HSWITCH XWPENTRY winhAddToTasklist(HWND hwnd, HPOINTER hIcon);
     594
     595    /* ******************************************************************
     596     *
     597     *   Miscellaneous
     598     *
     599     ********************************************************************/
     600
     601    VOID XWPENTRY winhFree(PVOID p);
     602    typedef VOID XWPENTRY WINHFREE(PVOID p);
     603    typedef WINHFREE *PWINHFREE;
     604
     605    VOID XWPENTRY winhSleep(HAB hab, ULONG ulSleep);
    563606
    564607    #define WINH_FOD_SAVEDLG        0x0001
     
    566609    #define WINH_FOD_INISAVEDIR     0x0020
    567610
    568     BOOL winhFileDlg(HWND hwndOwner,
    569                      PSZ pszFile,
    570                      ULONG flFlags,
    571                      HINI hini,
    572                      PSZ pszApplication,
    573                      PSZ pszKey);
    574 
    575     HPOINTER winhSetWaitPointer(VOID);
    576 
    577     PSZ winhQueryWindowText(HWND hwnd);
     611    BOOL XWPENTRY winhFileDlg(HWND hwndOwner,
     612                              PSZ pszFile,
     613                              ULONG flFlags,
     614                              HINI hini,
     615                              PSZ pszApplication,
     616                              PSZ pszKey);
     617
     618    HPOINTER XWPENTRY winhSetWaitPointer(VOID);
     619
     620    PSZ XWPENTRY winhQueryWindowText(HWND hwnd);
    578621
    579622    /*
     
    585628    #define winhQueryDlgItemText(hwnd, usItemID) winhQueryWindowText(WinWindowFromID(hwnd, usItemID))
    586629
    587     BOOL winhReplaceWindowText(HWND hwnd,
    588                                PSZ pszSearch,
    589                                PSZ pszReplaceWith);
    590 
    591     ULONG winhCenteredDlgBox(HWND hwndParent, HWND hwndOwner,
     630    BOOL XWPENTRY winhReplaceWindowText(HWND hwnd,
     631                                        PSZ pszSearch,
     632                                        PSZ pszReplaceWith);
     633
     634    ULONG XWPENTRY winhCenteredDlgBox(HWND hwndParent, HWND hwndOwner,
    592635                  PFNWP pfnDlgProc, HMODULE hmod, ULONG idDlg, PVOID pCreateParams);
    593 
    594     ULONG winhEnableControls(HWND hwndDlg,
    595                              USHORT usIDFirst,
    596                              USHORT usIDLast,
    597                              BOOL fEnable);
    598 
    599     HWND winhCreateStdWindow(HWND hwndFrameParent,
    600                              PSWP pswpFrame,
    601                              ULONG flFrameCreateFlags,
    602                              ULONG ulFrameStyle,
    603                              PSZ pszFrameTitle,
    604                              ULONG ulResourcesID,
    605                              PSZ pszClassClient,
    606                              ULONG flStyleClient,
    607                              ULONG ulID,
    608                              PVOID pClientCtlData,
    609                              PHWND phwndClient);
     636    typedef ULONG XWPENTRY WINHCENTEREDDLGBOX(HWND hwndParent, HWND hwndOwner,
     637                  PFNWP pfnDlgProc, HMODULE hmod, ULONG idDlg, PVOID pCreateParams);
     638    typedef WINHCENTEREDDLGBOX *PWINHCENTEREDDLGBOX;
     639
     640    ULONG XWPENTRY winhEnableControls(HWND hwndDlg,
     641                                      USHORT usIDFirst,
     642                                      USHORT usIDLast,
     643                                      BOOL fEnable);
     644
     645    HWND XWPENTRY winhCreateStdWindow(HWND hwndFrameParent,
     646                                      PSWP pswpFrame,
     647                                      ULONG flFrameCreateFlags,
     648                                      ULONG ulFrameStyle,
     649                                      PSZ pszFrameTitle,
     650                                      ULONG ulResourcesID,
     651                                      PSZ pszClassClient,
     652                                      ULONG flStyleClient,
     653                                      ULONG ulID,
     654                                      PVOID pClientCtlData,
     655                                      PHWND phwndClient);
    610656
    611657    /*
     
    626672                    (PSZ)"", 0, 0,0,0,0, 0, HWND_BOTTOM, 0, pvCreateParam, NULL)
    627673
    628     VOID winhRepaintWindows(HWND hwndParent);
    629 
    630     HMQ winhFindMsgQueue(PID pid,
    631                          TID tid,
    632                          HAB* phab);
    633 
    634     VOID winhFindPMErrorWindows(HWND *phwndHardError,
    635                                 HWND *phwndSysError);
    636 
    637     HWND winhCreateFakeDesktop(HWND hwndSibling);
    638 
    639     BOOL winhAssertWarp4Notebook(HWND hwndDlg,
     674    VOID XWPENTRY winhRepaintWindows(HWND hwndParent);
     675
     676    HMQ XWPENTRY winhFindMsgQueue(PID pid, TID tid, HAB* phab);
     677
     678    VOID XWPENTRY winhFindPMErrorWindows(HWND *phwndHardError, HWND *phwndSysError);
     679
     680    HWND XWPENTRY winhCreateFakeDesktop(HWND hwndSibling);
     681
     682    BOOL XWPENTRY winhAssertWarp4Notebook(HWND hwndDlg,
    640683                                 USHORT usIdThreshold,
    641684                                 ULONG ulDownUnits);
    642685
    643     ULONG winhDrawFormattedText(HPS hps, PRECTL prcl, PSZ pszText, ULONG flCmd);
    644 
    645     VOID winhKillTasklist(VOID);
    646 
    647     ULONG winhQueryPendingSpoolJobs(VOID);
    648 
    649     VOID winhSetNumLock(BOOL fState);
     686    ULONG XWPENTRY winhDrawFormattedText(HPS hps, PRECTL prcl, PSZ pszText, ULONG flCmd);
     687
     688    #ifdef INCL_WINSWITCHLIST
     689        PSWBLOCK XWPENTRY winhQuerySwitchList(HAB hab);
     690        typedef PSWBLOCK XWPENTRY WINHQUERYSWITCHLIST(HAB hab);
     691        typedef WINHQUERYSWITCHLIST *PWINHQUERYSWITCHLIST;
     692    #endif
     693
     694    HWND XWPENTRY winhQueryTasklistWindow(VOID);
     695    typedef HWND XWPENTRY WINHQUERYTASKLISTWINDOW(VOID);
     696    typedef WINHQUERYTASKLISTWINDOW *PWINHQUERYTASKLISTWINDOW;
     697
     698    VOID XWPENTRY winhKillTasklist(VOID);
     699
     700    ULONG XWPENTRY winhQueryPendingSpoolJobs(VOID);
     701
     702    VOID XWPENTRY winhSetNumLock(BOOL fState);
    650703
    651704    /*
     
    664717
    665718    /* ******************************************************************
    666      *                                                                  *
    667      *   WPS Class List helpers                                         *
    668      *                                                                  *
    669      ********************************************************************/
    670 
    671     PBYTE winhQueryWPSClassList(VOID);
    672 
    673     PBYTE winhQueryWPSClass(PBYTE pObjClass,
    674                             const char *pszClass);
    675 
    676     APIRET winhRegisterClass(const char* pcszClassName,
    677                              const char* pcszModule,
    678                              PSZ pszBuf,
    679                              ULONG cbBuf);
    680 
    681     BOOL winhIsClassRegistered(const char *pcszClass);
    682 
    683     ULONG winhResetWPS(HAB hab);
     719     *
     720     *   WPS Class List helpers
     721     *
     722     ********************************************************************/
     723
     724    PBYTE XWPENTRY winhQueryWPSClassList(VOID);
     725
     726    PBYTE XWPENTRY winhQueryWPSClass(PBYTE pObjClass, const char *pszClass);
     727
     728    APIRET XWPENTRY winhRegisterClass(const char* pcszClassName,
     729                                      const char* pcszModule,
     730                                      PSZ pszBuf,
     731                                      ULONG cbBuf);
     732
     733    BOOL XWPENTRY winhIsClassRegistered(const char *pcszClass);
     734
     735    ULONG XWPENTRY winhResetWPS(HAB hab);
    684736#endif
    685737
Note: See TracChangeset for help on using the changeset viewer.