Changeset 242 for trunk/include


Ignore:
Timestamp:
Jan 19, 2003, 8:42:16 PM (23 years ago)
Author:
umoeller
Message:

First attempt at new container contol.

Location:
trunk/include
Files:
2 added
8 edited

Legend:

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

    r223 r242  
    7676
    7777    #ifdef INCL_WINPROGRAMLIST
    78         // additional PROG_* flags for appQueryAppType
    79         // #define PROG_XWP_DLL            998      // dynamic link library
    80                     // removed, PROG_DLL exists already
    81                     // V0.9.16 (2001-10-06)
    82 
    83         #define PROG_WIN32              990     // added V0.9.16 (2001-12-08) [umoeller]
     78        // moved extra PROG_* defs to exeh.h V1.0.1 (2003-01-17) [umoeller]
    8479
    8580        APIRET appQueryAppType(const char *pcszExecutable,
    8681                               PULONG pulDosAppType,
    8782                               PULONG pulWinAppType);
    88 
    89         PCSZ appDescribeAppType(PROGCATEGORY progc);
    9083
    9184        ULONG appIsWindowsApp(ULONG ulProgCategory);
  • trunk/include/helpers/comctl.h

    r233 r242  
    11951195
    11961196    MRESULT ctlFormatExtFrame(HWND hwndFrame,
    1197                               PXFRAMECONTROLS pxfc,
     1197                              const XFRAMECONTROLS *pxfc,
    11981198                              MPARAM mp1,
    11991199                              MPARAM mp2);
    12001200
    1201     VOID ctlCalcExtFrameRect(MPARAM mp1,
    1202                              MPARAM mp2,
    1203                              LONG lStatusBarHeight);
     1201    MRESULT ctlCalcExtFrameRect(HWND hwndFrame,
     1202                                const XFRAMECONTROLS *pxfc,
     1203                                MPARAM mp1,
     1204                                MPARAM mp2);
    12041205
    12051206    HWND ctlCreateStatusBar(HWND hwndFrame,
     
    14011402    typedef CTLMAKECOLORRECT *PCTLMAKECOLORRECT;
    14021403
     1404    /* ******************************************************************
     1405     *
     1406     *   Container control replacement
     1407     *
     1408     ********************************************************************/
     1409
     1410    #define WC_CCTL_CNR             "ComctlCnr"
     1411
     1412    MRESULT EXPENTRY fnwpCnr(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
     1413
     1414    BOOL ctlRegisterXCnr(HAB hab);
     1415
     1416
    14031417#endif
    14041418
  • trunk/include/helpers/exeh.h

    r136 r242  
    77 *            numbering.
    88 *
     9 *@@include #define INCL_WINPROGRAMLIST         // for some funcs only
    910 *@@include #include <os2.h>
    1011 *@@include #include "helpers\dosh.h"
     
    231232    typedef struct _LXHEADER
    232233    {
    233         CHAR        achLX[2];           // 00: e32_magic  "LX" or "LE" magic
     234        CHAR      achLX[2];             // 00: e32_magic  "LX" or "LE" magic
    234235            // this is "LX" for 32-bit OS/2 programs, but
    235236            // "LE" for MS-DOS progs which use this format
     
    245246        ULONG     ulFlags;              // 10: e32_mflags module flags
    246247                #ifndef E32NOTP // do not conflict with toolkit exe defs
    247                     #define E32NOTP          0x8000L        // Library Module - used as NENOTP
    248                     #define E32NOLOAD        0x2000L        // Module not Loadable
    249                     #define E32PMAPI         0x0300L        // Uses PM Windowing API
    250                     #define E32PMW           0x0200L        // Compatible with PM Windowing
    251                     #define E32NOPMW         0x0100L        // Incompatible with PM Windowing
    252                     #define E32NOEXTFIX      0x0020L        // NO External Fixups in .EXE
    253                     #define E32NOINTFIX      0x0010L        // NO Internal Fixups in .EXE
    254                     #define E32SYSDLL        0x0008L        // System DLL, Internal Fixups discarded
    255                     #define E32LIBINIT       0x0004L        // Per-Process Library Initialization
     248                    #define E32NOTP          0x00008000L    // Library Module - used as NENOTP
     249                    #define E32NOLOAD        0x00002000L    // Module not Loadable
     250                    #define E32PMAPI         0x00000300L    // Uses PM Windowing API
     251                    #define E32PMW           0x00000200L    // Compatible with PM Windowing
     252                    #define E32NOPMW         0x00000100L    // Incompatible with PM Windowing
     253                    #define E32NOEXTFIX      0x00000020L    // NO External Fixups in .EXE
     254                    #define E32NOINTFIX      0x00000010L    // NO Internal Fixups in .EXE
     255                    #define E32SYSDLL        0x00000008L    // System DLL, Internal Fixups discarded
     256                    #define E32LIBINIT       0x00000004L    // Per-Process Library Initialization
    256257                    #define E32LIBTERM       0x40000000L    // Per-Process Library Termination
    257                     #define E32APPMASK       0x0300L        // Application Type Mask
     258
     259                    #define E32APPMASK       0x00000300L    // Application Type Mask
     260
     261                    // hiword defs added V1.0.1 (2003-01-17) [umoeller]
     262                    #define E32PROTDLL       0x00010000L    // Protected memory library module *
     263                    #define E32DEVICE        0x00020000L    // Device driver                   *
     264                    #define E32MODEXE        0x00000000L    // .EXE module                     *
     265                    #define E32MODDLL        0x00008000L    // .DLL module                     *
     266                    #define E32MODPROTDLL    0x00018000L    // Protected memory library module *
     267                    #define E32MODPDEV       0x00020000L    // Physical device driver          *
     268                    #define E32MODVDEV       0x00028000L    // Virtual device driver           *
     269                    #define E32MODMASK       0x00038000L    // Module type mask                *
     270                    #define E32NOTMPSAFE     0x00080000L    // Process is multi-processor unsafe *
    258271                #endif
    259272        ULONG     ulPageCount;          // 14: e32_mpages no. of pages in module
     
    12431256    APIRET exehQueryBldLevel(PEXECUTABLE pExec);
    12441257
     1258    #ifdef INCL_WINPROGRAMLIST
     1259
     1260        // additional PROG_* flags for exehQueryProgType; moved these here
     1261        // from app.h V1.0.1 (2003-01-17) [umoeller]
     1262
     1263        // #define PROG_XWP_DLL            998      // dynamic link library
     1264                    // removed, PROG_DLL exists already
     1265                    // V0.9.16 (2001-10-06)
     1266
     1267        #define PROG_WIN32              990     // added V0.9.16 (2001-12-08) [umoeller]
     1268
     1269        APIRET exehQueryProgType(const EXECUTABLE *pExec,
     1270                                 PROGCATEGORY *pulProgType);
     1271
     1272        PCSZ exehDescribeProgType(PROGCATEGORY progc);
     1273
     1274    #endif
     1275
    12451276    /*
    12461277     *@@ FSYSMODULE:
  • trunk/include/helpers/gpih.h

    r232 r242  
    194194                                              PCH pchString);
    195195    typedef GPIHCHARSTRINGPOSAT *PGPIHCHARSTRINGPOSAT;
     196
     197    VOID XWPENTRY gpihCalcTextExtent(HPS hps,
     198                                     PCSZ pcsz,
     199                                     PLONG pcx,
     200                                     PULONG pcLines);
     201
     202    VOID XWPENTRY gpihDrawString(HPS hps,
     203                                 PCSZ pcsz,
     204                                 PRECTL prcl,
     205                                 ULONG fl,
     206                                 PFONTMETRICS pfm);
    196207
    197208    /*
  • trunk/include/helpers/linklist.h

    r174 r242  
    134134                                          const char *function);
    135135        typedef PLINKLIST XWPENTRY LSTCREATEDEBUG(BOOL fItemsFreeable,
    136                                           const char *file,
    137                                           unsigned long line,
    138                                           const char *function);
     136                                                  const char *file,
     137                                                  unsigned long line,
     138                                                  const char *function);
    139139        typedef LSTCREATEDEBUG *PLSTCREATEDEBUG;
    140140
     
    199199                                           unsigned long ulIndex);
    200200    typedef PLISTNODE XWPENTRY LSTINSERTITEMBEFORE(PLINKLIST pList,
    201                                            void* pNewItemData,
    202                                            unsigned long ulIndex);
     201                                                   void* pNewItemData,
     202                                                   unsigned long ulIndex);
    203203    typedef LSTINSERTITEMBEFORE *PLSTINSERTITEMBEFORE;
     204
     205    PLISTNODE XWPENTRY lstInsertItemAfterNode(PLINKLIST pList,
     206                                              void* pNewItemData,
     207                                              PLISTNODE pNodeInsertAfter);
     208    typedef PLISTNODE XWPENTRY LSTINSERTITEMAFTERNODE(PLINKLIST pList,
     209                                                      void* pNewItemData,
     210                                                      PLISTNODE pNodeInsertAfter);
     211    typedef LSTINSERTITEMAFTERNODE *PLSTINSERTITEMAFTERNODE;
    204212
    205213    BOOL XWPENTRY lstRemoveNode(PLINKLIST pList, PLISTNODE pRemoveNode);
  • trunk/include/helpers/nls.h

    r194 r242  
    9090        } COUNTRYSETTINGS, *PCOUNTRYSETTINGS;
    9191
    92         VOID XWPENTRY nlsQueryCountrySettings(PCOUNTRYSETTINGS pcs);
     92        /*
     93         *@@ COUNTRYAMPM:
     94         *
     95         *@@added V1.0.1 (2003-01-17) [umoeller]
     96         */
     97
     98        typedef struct _COUNTRYAMPM
     99        {
     100            CHAR            sz2359[10],
     101                            sz1159[10];
     102        } COUNTRYAMPM, *PCOUNTRYAMPM;
     103
     104        /*
     105         *@@ COUNTRYSETTINGS:
     106         *      second structure to finally get the AM/PM
     107         *      stuff right too. I suspect people have used
     108         *      this structure in XCenter DLLs and such so
     109         *      I cannot easily change it... hence a second
     110         *      one.
     111         *
     112         *@@changed V1.0.1 (2003-01-17) [umoeller]
     113         */
     114
     115        typedef struct _COUNTRYSETTINGS2
     116        {
     117            COUNTRYSETTINGS cs;
     118            COUNTRYAMPM     ampm;
     119        } COUNTRYSETTINGS2, *PCOUNTRYSETTINGS2;
     120
     121        VOID XWPENTRY nlsQueryCountrySettings(PCOUNTRYSETTINGS2 pcs);
    93122
    94123        PSZ XWPENTRY nlsThousandsULong(PSZ pszTarget, ULONG ul, CHAR cThousands);
     
    103132                                       CHAR cThousands);
    104133
     134        VOID XWPENTRY nlsDate(const COUNTRYSETTINGS2 *pcs2,
     135                              PSZ pszDate,
     136                              USHORT year,
     137                              BYTE month,
     138                              BYTE day);
     139
     140        VOID XWPENTRY nlsTime(const COUNTRYSETTINGS2 *pcs,
     141                              PSZ pszTime,
     142                              BYTE hours,
     143                              BYTE minutes,
     144                              BYTE seconds);
     145
    105146        VOID XWPENTRY nlsFileDate(PSZ pszBuf,
    106                                   FDATE *pfDate,
    107                                   ULONG ulDateFormat,
    108                                   CHAR cDateSep);
     147                                  const FDATE *pfDate,
     148                                  const COUNTRYSETTINGS2 *pcs);
    109149
    110150        VOID XWPENTRY nlsFileTime(PSZ pszBuf,
    111                                   FTIME *pfTime,
    112                                   ULONG ulTimeFormat,
    113                                   CHAR cTimeSep);
     151                                  const FTIME *pfTime,
     152                                  const COUNTRYSETTINGS2 *pcs);
    114153
    115154        VOID XWPENTRY nlsDateTime(PSZ pszDate,
    116155                                  PSZ pszTime,
    117                                   DATETIME *pDateTime,
     156                                  const DATETIME *pDateTime,
    118157                                  ULONG ulDateFormat,
    119158                                  CHAR cDateSep,
     
    122161        typedef VOID XWPENTRY NLSDATETIME(PSZ pszDate,
    123162                                          PSZ pszTime,
    124                                           DATETIME *pDateTime,
     163                                          const DATETIME *pDateTime,
    125164                                          ULONG ulDateFormat,
    126165                                          CHAR cDateSep,
     
    129168        typedef NLSDATETIME *PNLSDATETIME;
    130169
    131         ULONG nlsUpper(PSZ psz);
     170        VOID XWPENTRY nlsDateTime2(PSZ pszDate,
     171                                   PSZ pszTime,
     172                                   const DATETIME *pDateTime,
     173                                   const COUNTRYSETTINGS2 *pcs2);
     174        typedef VOID XWPENTRY NLSDATETIME2(PSZ pszDate,
     175                                           PSZ pszTime,
     176                                           const DATETIME *pDateTime,
     177                                           const COUNTRYSETTINGS2 *pcs2);
     178        typedef NLSDATETIME2 *PNLSDATETIME2;
    132179
    133180    #endif
     181
     182    ULONG nlsUpper(PSZ psz);
    134183
    135184#endif
  • trunk/include/helpers/standards.h

    r232 r242  
    126126    #define STOREIFMAX(a, b) if ((a) > (b)) { b = a; }
    127127
     128    #ifdef _PMPRINTF_
     129        #define PMPF_RECT(s, prect) _PmpfF(("%s: xLeft %d, xRight %d, yBottom %d, yTop %d", (s), (prect)->xLeft, (prect)->xRight, (prect)->yBottom, (prect)->yTop))
     130    #else
     131        #define PMPF_RECT(s, prect)
     132    #endif
     133
    128134#endif
    129135
  • trunk/include/helpers/winh.h

    r239 r242  
    673673     ********************************************************************/
    674674
     675    #define ID_VSCROLL      100
     676    #define ID_HSCROLL      101
     677
     678    BOOL XWPENTRY winhCreateScrollBars(HWND hwndParent,
     679                                       HWND *phwndV,
     680                                       HWND *phwndH);
     681
    675682    BOOL XWPENTRY winhUpdateScrollBar(HWND hwndScrollBar,
    676683                                      ULONG ulWinPels,
     
    687694                                      ULONG msg,
    688695                                      MPARAM mp2);
     696
     697    LONG XWPENTRY winhHandleScrollMsg2(HWND hwndScrollBar,
     698                                       PLONG plCurPelsOfs,
     699                                       LONG lWindowPels,
     700                                       LONG lWorkareaPels,
     701                                       USHORT usLineStepPels,
     702                                       ULONG msg,
     703                                       MPARAM mp2);
     704    BOOL XWPENTRY winhScrollWindow(HWND hwnd2Scroll,
     705                                   PRECTL prclClip,
     706                                   PPOINTL pptlScroll);
    689707
    690708    BOOL XWPENTRY winhProcessScrollChars(HWND hwndClient,
     
    951969                                    ULONG ulID);
    952970
     971    BOOL XWPENTRY winhSetParentAndOwner(HWND hwnd,
     972                                        HWND hwndNewParent,
     973                                        BOOL fRedraw);
     974
    953975    VOID XWPENTRY winhRepaintWindows(HWND hwndParent);
    954976
Note: See TracChangeset for help on using the changeset viewer.