home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
memsz331.zip
/
Source.zip
/
SUPPORT.H
< prev
next >
Wrap
Text File
|
1996-10-16
|
3KB
|
126 lines
/****************************************************************** SUPPORT.H
* *
* Presentation Manager Support Functions *
* *
****************************************************************************/
#ifndef SUPPORT_H
#define SUPPORT_H
#define TRUE 1
#define FALSE 0
#define NOT !
#define OR ||
#define AND &&
#define _MAX_PATH 260
#define _MAX_DRIVE 3
#define _MAX_DIR 256
#define _MAX_FNAME 256
#define _MAX_EXT 256
#define DATEFMT_MM_DD_YY (0x0000)
#define DATEFMT_DD_MM_YY (0x0001)
#define DATEFMT_YY_MM_DD (0x0002)
#define max(a,b) (((a) > (b)) ? (a) : (b))
#define min(a,b) (((a) < (b)) ? (a) : (b))
typedef struct Method {
USHORT Action ;
PFNWP pFunction ;
} METHOD, *PMETHOD ;
inline HWND OWNER ( HWND Window ) { return ( WinQueryWindow ( Window, QW_OWNER ) ) ; }
inline HWND PARENT ( HWND Window ) { return ( WinQueryWindow ( Window, QW_PARENT ) ) ; }
extern MRESULT DispatchMessage (
HWND hwnd,
ULONG msg,
MPARAM mp1,
MPARAM mp2,
PMETHOD MethodTable,
USHORT MethodCount,
PFNWP DefaultProcessor
) ;
extern VOID AddSysMenuItem ( HWND hwndFrame, MENUITEM *Item, PSZ Text ) ;
extern VOID AddSysSubMenuItem (
HWND hwndFrame,
USHORT SubMenuID,
MENUITEM *Item,
PSZ Text
) ;
extern VOID AddMenuItem (
HWND hwndFrame,
USHORT MenuID,
MENUITEM *Item,
PSZ Text
) ;
extern VOID AddSubMenuItem (
HWND hwndFrame,
USHORT MenuID,
USHORT SubMenuID,
MENUITEM *Item,
PSZ Text
) ;
extern VOID RemoveSubMenuItem (
HWND hwndFrame,
USHORT MenuID,
USHORT SubMenuID,
USHORT ItemID
) ;
extern VOID EnableMenuItem ( HWND Frame, USHORT MenuID, USHORT Item, BOOL Enable ) ;
extern VOID EnableMenuItem ( HWND Menu, USHORT Item, BOOL Enable ) ;
extern VOID CheckMenuItem ( HWND Frame, USHORT MenuID, USHORT Item, BOOL Check ) ;
extern VOID CheckMenuItem ( HWND Menu, USHORT Item, BOOL Check ) ;
extern VOID Add2TaskList ( HWND hwnd, PSZ Name ) ;
extern PPRESPARAMS BuildPresParams (
USHORT ParmCount,
PULONG Ids,
PULONG ByteCounts,
PBYTE *Parms
) ;
#pragma pack(2)
typedef struct {
PSZ Name ;
USHORT Type ;
USHORT Length ;
PVOID Value ;
} EADATA, *PEADATA ;
#pragma pack()
extern PEAOP2 BuildExtendedAttributes ( ULONG Count, EADATA Table[] ) ;
#pragma pack(2)
typedef struct {
USHORT Type ;
USHORT Length ;
PVOID Value ;
} MVMT_VALUE, *PMVMT_VALUE ;
#pragma pack()
extern ULONG BuildMVMTValue ( PVOID Value, ULONG Count, MVMT_VALUE Table[] ) ;
extern FNWP Exit ;
extern FNWP HelpForHelp ;
extern FNWP ExtendedHelp ;
extern FNWP KeysHelp ;
extern FNWP HelpIndex ;
extern HBITMAP CopyBitmap ( HAB Anchor, HBITMAP Original ) ;
extern BOOL GetTitlebarRect ( HAB Anchor, HWND Window, RECTL &Rectangle ) ;
#endif