home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
smart21b.zip
/
SMARTAUX
/
SMARTMDI
/
INTERNAL.H
< prev
next >
Wrap
Text File
|
1994-11-15
|
3KB
|
35 lines
ACCELTABLE *GetAccelTable ( HAB hab, HWND hwnd );
ACCELTABLE *MergeAccelTable ( const ACCELTABLE *patOne, const ACCELTABLE *patTwo );
VOID ReplaceAccelTable ( HAB hab, HWND hwnd, ACCELTABLE *pat );
VOID InsertMenuMDIDocumentNames ( HWND hwndMDIServer, HWND hwndSubMenu, USHORT usStartPos, USHORT usStartId );
INT CountMDIDocuments ( HWND hwnd, ULONG ulSizeOptions, HWND **pphwnd );
VOID DeleteMenuMDIDocumentName ( HWND hwndMenu, SHORT sStartPos, SHORT sCountPos );
VOID GetNewMDIChildSWP ( HWND hwndMDIServer, SWP *pswp, INT iWindowCount );
#define MenuIdFromPos(hwnd,pos) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_ITEMIDFROMPOSITION, MPFROMSHORT ( pos ), 0 ) )
#define MenuQueryItem(hwnd,id,include,pmenuitem) LONGFROMMR ( WinSendMsg ( hwnd, MM_QUERYITEM, MPFROM2SHORT( id,include ), MPFROMP ( pmenuitem ) ) )
#define MenuQueryCount(hwnd) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_QUERYITEMCOUNT, 0, 0 ) )
#define MenuQueryItemTextLength(hwnd,id) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_QUERYITEMTEXTLENGTH,MPFROMSHORT ( id ), 0 ) )
#define MenuQueryItemText(hwnd,id,len,psz) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_QUERYITEMTEXT, MPFROM2SHORT( id, len ), MPFROMP ( psz ) ) )
#define MenuInsertItem(hwnd,pmenuitem,psz) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_INSERTITEM, MPFROMP ( pmenuitem ), MPFROMP ( psz ) ) )
#define MenuSetItemText(hwnd,id,psz) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_SETITEMTEXT, MPFROMSHORT ( id ), MPFROMP ( psz ) ) )
#define MenuDeleteItem(hwnd,id,include) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_DELETEITEM, MPFROM2SHORT( id,include ), 0 ) )
#define MenuQueryItemAttr(hwnd,id,include,mask) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_QUERYITEMATTR, MPFROM2SHORT( id,include ), MPFROMSHORT ( mask ) ) )
#define MenuSetItem(hwnd,include,pmenuitem) LONGFROMMR ( WinSendMsg ( hwnd, MM_SETITEM, MPFROM2SHORT( 0, include ), MPFROMP ( pmenuitem ) ) )
#define MenuSetItemAttr(hwnd,id,include,mask,data) SHORT1FROMMR ( WinSendMsg ( hwnd, MM_SETITEMATTR, MPFROM2SHORT( id,include ), MPFROM2SHORT( mask, data ) ) )
#define HABOF(hwnd) (WinQueryAnchorBlock(hwnd))
#define HMQOF(hwnd) (WinQueryWindowULong(hwnd,QWL_HMQ))
#define RESTORE_BUTTON_ID SC_RESTORE
#define PHANTOM_BUTTON SC_CLOSE
#define UM_SETUPBUTTON (WM_USER+1011)
#define UM_REMOVEBUTTON (WM_USER+1012)
typedef struct _RestoreWW {
ULONG delta_cy;
PFNWP fnwpActionBar;
} RestoreButtonWW;