Missing ImageList fns. , Tab control defines and ComCtl32 exports (b20)
Nirmal Prasad
nprasad@truept.com
Sun Mar 21 14:26:00 GMT 1999
hi,
the following were missing from the b20 headers (also attached
comctl32.def):-
Also i was told that a new set of headers is being used can anyone tell me
where these are .. do i need b20.1 ???
[CommonFunctions.h]
/* ImageList Extensions */
#if (_WIN32_IE >= 0x0300)
WINBOOL WINAPI ImageList_SetImageCount(HIMAGELIST himl, UINT uNewCount);
WINBOOL WINAPI ImageList_Copy(HIMAGELIST himlDst, int iDst, HIMAGELIST
himlSrc, int iSrc, UINT uFlags);
WINBOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS* pimldp);
#endif
#define ImageList_ExtractIcon(hi, himl, i) ImageList_GetIcon(himl, i, 0)
WINBOOL WINAPI ImageList_DragShowNolock(BOOL fShow);
/* Tab Control Extensions */
#if (_WIN32_IE >= 0x0300)
#define TabCtrl_SetMinTabWidth(hwnd, x) \
SendMessage((hwnd), TCM_SETMINTABWIDTH, 0, x)
#define TabCtrl_DeselectAll(hwnd, fExcludeFocus)\
SendMessage((hwnd), TCM_DESELECTALL, fExcludeFocus, 0)
#endif
#if (_WIN32_IE >= 0x0400)
#define TabCtrl_HighlightItem(hwnd, i, fHighlight) \
SendMessage((hwnd), TCM_HIGHLIGHTITEM, (WPARAM)i, (LPARAM)MAKELONG
(fHighlight, 0))
#define TabCtrl_SetExtendedStyle(hwnd, dw)\
SendMessage((hwnd), TCM_SETEXTENDEDSTYLE, 0, dw)
#define TabCtrl_GetExtendedStyle(hwnd)\
SendMessage((hwnd), TCM_GETEXTENDEDSTYLE, 0, 0)
#define TabCtrl_SetUnicodeFormat(hwnd, fUnicode) \
SendMessage((hwnd), TCM_SETUNICODEFORMAT, (WPARAM)(fUnicode), 0)
#define TabCtrl_GetUnicodeFormat(hwnd) \
SendMessage((hwnd), TCM_GETUNICODEFORMAT, 0, 0)
#endif // _WIN32_IE >= 0x0400 (uhh.. ???? )
[Defines.h]
/* ImageList Control */
#if (_WIN32_IE >= 0x0300)
#define ILCF_MOVE (0)
#define ILCF_SWAP (0x00000001)
#endif
/* Tab Control Extensions */
#if (_WIN32_IE >= 0x0300)
#define TCM_SETMINTABWIDTH (4913)
#define TCM_DESELECTALL (4914)
#endif
#if (_WIN32_IE >= 0x0300)
#define TCM_HIGHLIGHTITEM (4915)
#define TCM_SETEXTENDEDSTYLE (4916)
#define TCM_GETEXTENDEDSTYLE (4917)
#define TCM_SETUNICODEFORMAT (0x2005)
#define TCM_GETUNICODEFORMAT (0x2006)
#endif
[Structures.h]
/* Tab Control Extensions */
typedef struct tagTCITEM
{
UINT mask;
#if (_WIN32_IE >= 0x0300)
DWORD dwState;
DWORD dwStateMask;
#else
UINT lpReserved1;
UINT lpReserved2;
#endif
#ifdef UNICODE
LPWSTR pszText;
#else
LPSTR pszText;
#endif
int cchTextMax;
int iImage;
LPARAM lParam;
} TCITEM,*LPTCITEM;
#if (_WIN32_IE >= 0x0300) /* IE3.0+ ????? */
typedef struct tagTCHITTESTINFO
{
POINT pt;
UINT flags;
} TCHITTESTINFO,*LPTCHITTESTINFO;
#endif
/* Image List Structures */
#if (_WIN32_IE >= 0x0300)
typedef struct tagIMAGELISTDRAWPARAMS
{
DWORD cbSize;
HIMAGELIST himl;
int i;
HDC hdcDst;
int x;
int y;
int cx;
int cy;
int xBitmap;
int yBitmap;
COLORREF rgbBk;
COLORREF rgbFg;
UINT fStyle;
DWORD dwRop;
} IMAGELISTDRAWPARAMS,*LPIMAGELISTDRAWPARAMS;
#endif // _WIN32_IE >= 0x0300
Regards
Nirmal Prasad R.
More information about the Cygwin
mailing list