home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
COMMCTRL.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
13KB
|
555 lines
//----------------------------------------------------------------------------
// CommCtrl.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: CommCtrl.pas
//----------------------------------------------------------------------------
#ifndef CommCtrlHPP
#define CommCtrlHPP
//----------------------------------------------------------------------------
#include <Windows.hpp>
#include <Messages.hpp>
#include <System.hpp>
#include <Commctrl.h>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Commctrl
{
//-- type declarations -------------------------------------------------------
typedef void *HPropSheetPage;
typedef _PROPSHEETPAGEA *PPropSheetPageA;
typedef _PROPSHEETPAGEW *PPropSheetPageW;
typedef _PROPSHEETPAGEA *PPropSheetPage;
typedef int __stdcall (*TFNPSPCallbackA)(HWND Wnd, int Msg, PPropSheetPageA PPSP);
typedef int __stdcall (*TFNPSPCallbackW)(HWND Wnd, int Msg, PPropSheetPageW PPSP);
typedef int __stdcall (*TFNPSPCallback)(HWND Wnd, int Msg, PPropSheetPageA PPSP);
typedef _PROPSHEETPAGEA TPropSheetPageA;
typedef _PROPSHEETPAGEW TPropSheetPageW;
typedef _PROPSHEETPAGEA TPropSheetPage;
typedef int __stdcall (*TFNPropSheetCallback)(HWND Wnd, int Msg, int LParam);
typedef _PROPSHEETHEADERA *PPropSheetHeaderA;
typedef _PROPSHEETHEADERW *PPropSheetHeaderW;
typedef _PROPSHEETHEADERA *PPropSheetHeader;
typedef _PROPSHEETHEADERA TPropSheetHeaderA;
typedef _PROPSHEETHEADERW TPropSheetHeaderW;
typedef _PROPSHEETHEADERA TPropSheetHeader;
typedef DWord __stdcall (*TFNAddPropSheetPage)(void * hPSP, long lParam);
typedef int HImageList;
typedef _IMAGEINFO *PImageInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _IMAGEINFO TImageInfo;
typedef _HD_ITEMA *PHDItemA;
typedef _HD_ITEMW *PHDItemW;
typedef _HD_ITEMA *PHDItem;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _HD_ITEMA THDItemA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _HD_ITEMW THDItemW;
typedef _HD_ITEMA THDItem;
typedef _HD_LAYOUT *PHDLayout;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _HD_LAYOUT THDLayout;
typedef _HD_HITTESTINFO *PHDHitTestInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _HD_HITTESTINFO THDHitTestInfo;
typedef _HD_NOTIFY *PHDNotifyA;
typedef _HD_NOTIFYW *PHDNotifyW;
typedef _HD_NOTIFY *PHDNotify;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _HD_NOTIFY THDNotifyA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _HD_NOTIFYW THDNotifyW;
typedef _HD_NOTIFY THDNotify;
typedef _TBBUTTON *PTBButton;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TBBUTTON TTBButton;
typedef _COLORMAP *PColorMap;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _COLORMAP TColorMap;
typedef tagTBADDBITMAP *PTBAddBitmap;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTBADDBITMAP TTBAddBitmap;
typedef tagTBSAVEPARAMSA *PTBSaveParamsA;
typedef tagTBSAVEPARAMSW *PTBSaveParamsW;
typedef tagTBSAVEPARAMSA *PTBSaveParams;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTBSAVEPARAMSA TTBSaveParamsA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTBSAVEPARAMSW TTBSaveParamsW;
typedef tagTBSAVEPARAMSA TTBSaveParams;
typedef tagTBNOTIFYA *PTBNotifyA;
typedef tagTBNOTIFYW *PTBNotifyW;
typedef tagTBNOTIFYA *PTBNotify;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTBNOTIFYA TTBNotifyA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTBNOTIFYW TTBNotifyW;
typedef tagTBNOTIFYA TTBNotify;
typedef tagTOOLINFOA *PToolInfoA;
typedef tagTOOLINFOW *PToolInfoW;
typedef tagTOOLINFOA *PToolInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTOOLINFOA TToolInfoA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTOOLINFOW TToolInfoW;
typedef tagTOOLINFOA TToolInfo;
typedef _TT_HITTESTINFOA *PTTHitTestInfoA;
typedef _TT_HITTESTINFOW *PTTHitTestInfoW;
typedef _TT_HITTESTINFOA *PTTHitTestInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TT_HITTESTINFOA TTTHitTestInfoA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TT_HITTESTINFOW TTTHitTestInfoW;
typedef _TT_HITTESTINFOA TTTHitTestInfo;
typedef tagTOOLTIPTEXTA *PToolTipTextA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTOOLTIPTEXTA TToolTipTextA;
typedef tagTOOLTIPTEXTW *PToolTipTextW;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagTOOLTIPTEXTW TToolTipTextW;
typedef tagDRAGLISTINFO *PDragListInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef tagDRAGLISTINFO TDragListInfo;
typedef _UDACCEL *PUDAccel;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _UDACCEL TUDAccel;
typedef _NM_UPDOWN *PNMUpDown;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _NM_UPDOWN TNMUpDown;
typedef _LV_ITEMA *PLVItemA;
typedef _LV_ITEMW *PLVItemW;
typedef _LV_ITEMA *PLVItem;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_ITEMA TLVItemA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_ITEMW TLVItemW;
typedef _LV_ITEMA TLVItem;
typedef _LV_FINDINFOA *PLVFindInfoA;
typedef _LV_FINDINFOW *PLVFindInfoW;
typedef _LV_FINDINFOA *PLVFindInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_FINDINFOA TLVFindInfoA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_FINDINFOW TLVFindInfoW;
typedef _LV_FINDINFOA TLVFindInfo;
typedef _LV_HITTESTINFO *PLVHitTestInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_HITTESTINFO TLVHitTestInfo;
typedef _LV_COLUMNA *PLVColumnA;
typedef _LV_COLUMNW *PLVColumnW;
typedef _LV_COLUMNA *PLVColumn;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_COLUMNA TLVColumnA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_COLUMNW TLVColumnW;
typedef _LV_COLUMNA TLVColumn;
typedef int __stdcall (*TLVCompare)(int lParam1, int lParam2, int lParamSort);
typedef _NM_LISTVIEW *PNMListView;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _NM_LISTVIEW TNMListView;
typedef _LV_DISPINFO *PLVDispInfoA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_DISPINFO TLVDispInfoA;
typedef _LV_DISPINFOW *PLVDispInfoW;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_DISPINFOW TLVDispInfoW;
typedef _LV_DISPINFO *PLVDispInfo;
typedef _LV_KEYDOWN *PLVKeyDown;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _LV_KEYDOWN TLVKeyDown;
#pragma pack(push, 1)
struct _TreeItem
{
} ;
#pragma pack(pop)
typedef _TreeItem *HTreeItem;
typedef _TV_ITEMA *PTVItemA;
typedef _TV_ITEMW *PTVItemW;
typedef _TV_ITEMA *PTVItem;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_ITEMA TTVItemA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_ITEMW TTVItemW;
typedef _TV_ITEMA TTVItem;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_INSERTSTRUCTA *PTVInsertStructA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_INSERTSTRUCTW *PTVInsertStructW;
typedef _TV_INSERTSTRUCTA *PTVInsertStruct;
typedef _TV_INSERTSTRUCTA TTVInsertStructA;
typedef _TV_INSERTSTRUCTW TTVInsertStructW;
typedef _TV_INSERTSTRUCTA TTVInsertStruct;
typedef _TV_HITTESTINFO *PTVHitTestInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_HITTESTINFO TTVHitTestInfo;
typedef int __stdcall (*TTVCompare)(long lParam1, long lParam2, long lParamSort);
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_SORTCB TTVSortCB;
typedef _NM_TREEVIEWA *PNMTreeViewA;
typedef _NM_TREEVIEWW *PNMTreeViewW;
typedef _NM_TREEVIEWA *PNMTreeView;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _NM_TREEVIEWA TNMTreeViewA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _NM_TREEVIEWW TNMTreeViewW;
typedef _NM_TREEVIEWA TNMTreeView;
typedef _TV_DISPINFOA *PTVDispInfoA;
typedef _TV_DISPINFOW *PTVDispInfoW;
typedef _TV_DISPINFOA *PTVDispInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_DISPINFOA TTVDispInfoA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_DISPINFOW TTVDispInfoW;
typedef _TV_DISPINFOA TTVDispInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TV_KEYDOWN TTVKeyDown;
typedef _TC_ITEMHEADERA *PTCItemHeaderA;
typedef _TC_ITEMHEADERW *PTCItemHeaderW;
typedef _TC_ITEMHEADERA *PTCItemHeader;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TC_ITEMHEADERA TTCItemHeaderA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TC_ITEMHEADERW TTCItemHeaderW;
typedef _TC_ITEMHEADERA TTCItemHeader;
typedef _TC_ITEMA *PTCItemA;
typedef _TC_ITEMW *PTCItemW;
typedef _TC_ITEMA *PTCItem;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TC_ITEMA TTCItemA;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TC_ITEMW TTCItemW;
typedef _TC_ITEMA TTCItem;
typedef _TC_HITTESTINFO *PTCHitTestInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TC_HITTESTINFO TTCHitTestInfo;
#pragma pack(push, 1)
#pragma pack(pop)
typedef _TC_KEYDOWN TTCKeyDown;
//-- var, const, procedure ---------------------------------------------------
#define PSH_MULTILINETABS (Byte)(16)
#define NM_STARTWAIT (Shortint)(-9)
#define NM_ENDWAIT (Shortint)(-10)
#define NM_BTNCLK (Shortint)(-10)
#define TB_SETBUTTONTYPE (Word)(1058)
#define TOOTIPS_CLASS "tooltips_class32"
#define HBT_SPRING (Word)(1024)
#define HOTKEYCLASS "msctls_hotkey32"
#define CCS_NOHILITE (Byte)(16)
#define LVIS_LINK (Byte)(64)
#define LVNI_PREVIOUS (Byte)(32)
#define LVA_ALIGNRIGHT (Byte)(3)
#define LVA_ALIGNBOTTOM (Byte)(4)
#define LVA_SORTASCENDING (Word)(256)
#define LVA_SORTDESCENDING (Word)(512)
#define LVN_ENDDRAG (Shortint)(-110)
#define LVN_ENDRDRAG (Shortint)(-112)
#define TCS_SHAREIMAGELISTS (Byte)(64)
#define TCM_GETBKCOLOR (Word)(4864)
#define TCM_SETBKCOLOR (Word)(4865)
extern int __fastcall IndexToOverlayMask(int Index);
extern long __fastcall IndexToStateImageMask(long I);
extern DWord __fastcall ListView_GetItemA(HWND hWnd, LV_ITEMA &pItem);
extern DWord __fastcall ListView_GetItemW(HWND hWnd, LV_ITEMW &pItem);
extern DWord __fastcall ListView_SetItemA(HWND hWnd, const LV_ITEMA &pItem);
extern DWord __fastcall ListView_SetItemW(HWND hWnd, const LV_ITEMW &pItem);
extern int __fastcall ListView_InsertItemA(HWND hWnd, const LV_ITEMA &pItem);
extern int __fastcall ListView_InsertItemW(HWND hWnd, const LV_ITEMW &pItem);
extern int __fastcall ListView_FindItemA(HWND hWnd, int iStart, const LV_FINDINFOA &plvfi);
extern int __fastcall ListView_FindItemW(HWND hWnd, int iStart, const LV_FINDINFOW &plvfi);
extern int __fastcall ListView_GetStringWidthA(HWND hwndLV, char * psz);
extern int __fastcall ListView_GetStringWidthW(HWND hwndLV, wchar_t * psz);
extern HWND __fastcall ListView_EditLabelA(HWND hwndLV, int i);
extern HWND __fastcall ListView_EditLabelW(HWND hwndLV, int i);
extern DWord __fastcall ListView_GetColumnA(HWND hwnd, int iCol, LV_COLUMNA &pcol);
extern DWord __fastcall ListView_GetColumnW(HWND hwnd, int iCol, LV_COLUMNW &pcol);
extern DWord __fastcall ListView_SetColumnA(HWND hwnd, int iCol, const LV_COLUMNA &pcol);
extern DWord __fastcall ListView_SetColumnW(HWND hwnd, int iCol, const LV_COLUMNW &pcol);
extern int __fastcall ListView_InsertColumnA(HWND hwnd, int iCol, const LV_COLUMNA &pcol);
extern int __fastcall ListView_InsertColumnW(HWND hwnd, int iCol, const LV_COLUMNW &pcol);
extern int __fastcall ListView_GetItemTextA(HWND hwndLV, int i, int iSubItem, char * pszText, int cchTextMax
);
extern int __fastcall ListView_GetItemTextW(HWND hwndLV, int i, int iSubItem, wchar_t * pszText, int
cchTextMax);
extern DWord __fastcall ListView_SetItemTextA(HWND hwndLV, int i, int iSubItem, char * pszText);
extern DWord __fastcall ListView_SetItemTextW(HWND hwndLV, int i, int iSubItem, wchar_t * pszText);
extern DWord __fastcall ListView_GetISearchStringA(HWND hwndLV, char * lpsz);
extern DWord __fastcall ListView_GetISearchStringW(HWND hwndLV, wchar_t * lpsz);
extern HTreeItem __fastcall TreeView_GetDropHilite(HWND hwnd);
extern DWord __fastcall TreeView_GetItemA(HWND hwnd, TV_ITEMA &pitem);
extern DWord __fastcall TreeView_GetItemW(HWND hwnd, TV_ITEMW &pitem);
extern DWord __fastcall TreeView_SetItemA(HWND hwnd, const TV_ITEMA &pitem);
extern DWord __fastcall TreeView_SetItemW(HWND hwnd, const TV_ITEMW &pitem);
extern HWND __fastcall TreeView_EditLabelA(HWND hwnd, HTreeItem hitem);
extern HWND __fastcall TreeView_EditLabelW(HWND hwnd, HTreeItem hitem);
extern DWord __fastcall TreeView_GetISearchStringA(HWND hwndTV, char * lpsz);
extern DWord __fastcall TreeView_GetISearchStringW(HWND hwndTV, wchar_t * lpsz);
} /* namespace Commctrl */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Commctrl;
#endif
//-- end unit ----------------------------------------------------------------
#endif // CommCtrl