Commit c63f4853 authored by Alexandre Julliard's avatar Alexandre Julliard

include: Use proper dllimports for comctl32 functions.

parent f9ee565c
EXTRADEFS = -D_COMCTL32_
MODULE = comctl32.dll MODULE = comctl32.dll
IMPORTLIB = comctl32 IMPORTLIB = comctl32
IMPORTS = uuid user32 gdi32 advapi32 usp10 imm32 kernelbase IMPORTS = uuid user32 gdi32 advapi32 usp10 imm32 kernelbase
......
...@@ -28,19 +28,27 @@ ...@@ -28,19 +28,27 @@
extern "C" { extern "C" {
#endif #endif
BOOL WINAPI ShowHideMenuCtl (HWND, UINT_PTR, LPINT); #ifndef WINCOMMCTRLAPI
VOID WINAPI GetEffectiveClientRect (HWND, LPRECT, const INT*); #ifdef _COMCTL32_
VOID WINAPI InitCommonControls (VOID); # define WINCOMMCTRLAPI
#else
# define WINCOMMCTRLAPI DECLSPEC_IMPORT
#endif
#endif
WINCOMMCTRLAPI BOOL WINAPI ShowHideMenuCtl (HWND, UINT_PTR, LPINT);
WINCOMMCTRLAPI VOID WINAPI GetEffectiveClientRect (HWND, LPRECT, const INT*);
WINCOMMCTRLAPI VOID WINAPI InitCommonControls (VOID);
typedef struct tagINITCOMMONCONTROLSEX { typedef struct tagINITCOMMONCONTROLSEX {
DWORD dwSize; DWORD dwSize;
DWORD dwICC; DWORD dwICC;
} INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX; } INITCOMMONCONTROLSEX, *LPINITCOMMONCONTROLSEX;
BOOL WINAPI InitCommonControlsEx (const INITCOMMONCONTROLSEX*); WINCOMMCTRLAPI BOOL WINAPI InitCommonControlsEx (const INITCOMMONCONTROLSEX*);
LANGID WINAPI GetMUILanguage (VOID); WINCOMMCTRLAPI LANGID WINAPI GetMUILanguage (VOID);
VOID WINAPI InitMUILanguage (LANGID uiLang); WINCOMMCTRLAPI VOID WINAPI InitMUILanguage (LANGID uiLang);
enum _LI_METRIC enum _LI_METRIC
{ {
...@@ -48,8 +56,8 @@ enum _LI_METRIC ...@@ -48,8 +56,8 @@ enum _LI_METRIC
LIM_LARGE LIM_LARGE
}; };
HRESULT WINAPI LoadIconWithScaleDown(HINSTANCE, const WCHAR *, int, int, HICON *); WINCOMMCTRLAPI HRESULT WINAPI LoadIconWithScaleDown(HINSTANCE, const WCHAR *, int, int, HICON *);
HRESULT WINAPI LoadIconMetric(HINSTANCE, const WCHAR *, int, HICON *); WINCOMMCTRLAPI HRESULT WINAPI LoadIconMetric(HINSTANCE, const WCHAR *, int, HICON *);
#define COMCTL32_VERSION 5 /* dll version */ #define COMCTL32_VERSION 5 /* dll version */
...@@ -323,14 +331,14 @@ static const WCHAR STATUSCLASSNAMEW[] = { 'm','s','c','t','l','s','_', ...@@ -323,14 +331,14 @@ static const WCHAR STATUSCLASSNAMEW[] = { 'm','s','c','t','l','s','_',
#define SBN_LAST (0U-899U) #define SBN_LAST (0U-899U)
#define SBN_SIMPLEMODECHANGE (SBN_FIRST-0) #define SBN_SIMPLEMODECHANGE (SBN_FIRST-0)
HWND WINAPI CreateStatusWindowA (LONG, LPCSTR, HWND, UINT); WINCOMMCTRLAPI HWND WINAPI CreateStatusWindowA (LONG, LPCSTR, HWND, UINT);
HWND WINAPI CreateStatusWindowW (LONG, LPCWSTR, HWND, UINT); WINCOMMCTRLAPI HWND WINAPI CreateStatusWindowW (LONG, LPCWSTR, HWND, UINT);
#define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow) #define CreateStatusWindow WINELIB_NAME_AW(CreateStatusWindow)
VOID WINAPI DrawStatusTextA (HDC, LPCRECT, LPCSTR, UINT); WINCOMMCTRLAPI VOID WINAPI DrawStatusTextA (HDC, LPCRECT, LPCSTR, UINT);
VOID WINAPI DrawStatusTextW (HDC, LPCRECT, LPCWSTR, UINT); WINCOMMCTRLAPI VOID WINAPI DrawStatusTextW (HDC, LPCRECT, LPCWSTR, UINT);
#define DrawStatusText WINELIB_NAME_AW(DrawStatusText) #define DrawStatusText WINELIB_NAME_AW(DrawStatusText)
VOID WINAPI MenuHelp (UINT, WPARAM, LPARAM, HMENU, WINCOMMCTRLAPI VOID WINAPI MenuHelp (UINT, WPARAM, LPARAM, HMENU,
HINSTANCE, HWND, UINT*); HINSTANCE, HWND, UINT*);
typedef struct tagCOLORSCHEME typedef struct tagCOLORSCHEME
{ {
...@@ -369,9 +377,9 @@ static const WCHAR DRAGLISTMSGSTRINGW[] = { 'c','o','m','m','c','t','r','l', ...@@ -369,9 +377,9 @@ static const WCHAR DRAGLISTMSGSTRINGW[] = { 'c','o','m','m','c','t','r','l',
#endif #endif
#define DRAGLISTMSGSTRING WINELIB_NAME_AW(DRAGLISTMSGSTRING) #define DRAGLISTMSGSTRING WINELIB_NAME_AW(DRAGLISTMSGSTRING)
BOOL WINAPI MakeDragList (HWND); WINCOMMCTRLAPI BOOL WINAPI MakeDragList (HWND);
VOID WINAPI DrawInsert (HWND, HWND, INT); WINCOMMCTRLAPI VOID WINAPI DrawInsert (HWND, HWND, INT);
INT WINAPI LBItemFromPt (HWND, POINT, BOOL); WINCOMMCTRLAPI INT WINAPI LBItemFromPt (HWND, POINT, BOOL);
/* UpDown */ /* UpDown */
...@@ -427,9 +435,7 @@ typedef struct tagNM_UPDOWN ...@@ -427,9 +435,7 @@ typedef struct tagNM_UPDOWN
int iDelta; int iDelta;
} NM_UPDOWN, *LPNM_UPDOWN; } NM_UPDOWN, *LPNM_UPDOWN;
HWND WINAPI CreateUpDownControl (DWORD, INT, INT, INT, INT, WINCOMMCTRLAPI HWND WINAPI CreateUpDownControl (DWORD, INT, INT, INT, INT, HWND, INT, HINSTANCE, HWND, INT, INT, INT);
HWND, INT, HINSTANCE, HWND,
INT, INT, INT);
/* Progress Bar */ /* Progress Bar */
...@@ -559,54 +565,49 @@ typedef struct _IMAGELISTDRAWPARAMS ...@@ -559,54 +565,49 @@ typedef struct _IMAGELISTDRAWPARAMS
#define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop) #define IMAGELISTDRAWPARAMS_V3_SIZE CCSIZEOF_STRUCT(IMAGELISTDRAWPARAMS, dwRop)
HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST,REFIID,void **); WINCOMMCTRLAPI HRESULT WINAPI HIMAGELIST_QueryInterface(HIMAGELIST,REFIID,void **);
INT WINAPI ImageList_Add(HIMAGELIST,HBITMAP,HBITMAP); WINCOMMCTRLAPI INT WINAPI ImageList_Add(HIMAGELIST,HBITMAP,HBITMAP);
INT WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP,COLORREF); WINCOMMCTRLAPI INT WINAPI ImageList_AddMasked(HIMAGELIST,HBITMAP,COLORREF);
BOOL WINAPI ImageList_BeginDrag(HIMAGELIST,INT,INT,INT); WINCOMMCTRLAPI BOOL WINAPI ImageList_BeginDrag(HIMAGELIST,INT,INT,INT);
BOOL WINAPI ImageList_Copy(HIMAGELIST,INT,HIMAGELIST,INT,UINT); WINCOMMCTRLAPI BOOL WINAPI ImageList_Copy(HIMAGELIST,INT,HIMAGELIST,INT,UINT);
HIMAGELIST WINAPI ImageList_Create(INT,INT,UINT,INT,INT); WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Create(INT,INT,UINT,INT,INT);
BOOL WINAPI ImageList_Destroy(HIMAGELIST); WINCOMMCTRLAPI BOOL WINAPI ImageList_Destroy(HIMAGELIST);
BOOL WINAPI ImageList_DragEnter(HWND,INT,INT); WINCOMMCTRLAPI BOOL WINAPI ImageList_DragEnter(HWND,INT,INT);
BOOL WINAPI ImageList_DragLeave(HWND); WINCOMMCTRLAPI BOOL WINAPI ImageList_DragLeave(HWND);
BOOL WINAPI ImageList_DragMove(INT,INT); WINCOMMCTRLAPI BOOL WINAPI ImageList_DragMove(INT,INT);
BOOL WINAPI ImageList_DragShowNolock (BOOL); WINCOMMCTRLAPI BOOL WINAPI ImageList_DragShowNolock (BOOL);
BOOL WINAPI ImageList_Draw(HIMAGELIST,INT,HDC,INT,INT,UINT); WINCOMMCTRLAPI BOOL WINAPI ImageList_Draw(HIMAGELIST,INT,HDC,INT,INT,UINT);
BOOL WINAPI ImageList_DrawEx(HIMAGELIST,INT,HDC,INT,INT,INT, WINCOMMCTRLAPI BOOL WINAPI ImageList_DrawEx(HIMAGELIST,INT,HDC,INT,INT,INT,INT,COLORREF,COLORREF,UINT);
INT,COLORREF,COLORREF,UINT); WINCOMMCTRLAPI BOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*);
BOOL WINAPI ImageList_DrawIndirect(IMAGELISTDRAWPARAMS*); WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST);
HIMAGELIST WINAPI ImageList_Duplicate(HIMAGELIST); WINCOMMCTRLAPI VOID WINAPI ImageList_EndDrag(VOID);
VOID WINAPI ImageList_EndDrag(VOID); WINCOMMCTRLAPI COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST);
COLORREF WINAPI ImageList_GetBkColor(HIMAGELIST); WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_GetDragImage(POINT*,POINT*);
HIMAGELIST WINAPI ImageList_GetDragImage(POINT*,POINT*); WINCOMMCTRLAPI HICON WINAPI ImageList_GetIcon(HIMAGELIST,INT,UINT);
HICON WINAPI ImageList_GetIcon(HIMAGELIST,INT,UINT); WINCOMMCTRLAPI BOOL WINAPI ImageList_GetIconSize(HIMAGELIST,INT*,INT*);
BOOL WINAPI ImageList_GetIconSize(HIMAGELIST,INT*,INT*); WINCOMMCTRLAPI INT WINAPI ImageList_GetImageCount(HIMAGELIST);
INT WINAPI ImageList_GetImageCount(HIMAGELIST); WINCOMMCTRLAPI BOOL WINAPI ImageList_GetImageInfo(HIMAGELIST,INT,IMAGEINFO*);
BOOL WINAPI ImageList_GetImageInfo(HIMAGELIST,INT,IMAGEINFO*); WINCOMMCTRLAPI BOOL WINAPI ImageList_GetImageRect(HIMAGELIST,INT,LPRECT);
BOOL WINAPI ImageList_GetImageRect(HIMAGELIST,INT,LPRECT); WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE,LPCSTR,INT,INT,COLORREF,UINT,UINT);
HIMAGELIST WINAPI ImageList_LoadImageA(HINSTANCE,LPCSTR,INT,INT, WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE,LPCWSTR,INT,INT,COLORREF,UINT,UINT);
COLORREF,UINT,UINT); #define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage)
HIMAGELIST WINAPI ImageList_LoadImageW(HINSTANCE,LPCWSTR,INT,INT, WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,INT,HIMAGELIST,INT,INT,INT);
COLORREF,UINT,UINT); WINCOMMCTRLAPI BOOL WINAPI ImageList_Remove(HIMAGELIST,INT);
#define ImageList_LoadImage WINELIB_NAME_AW(ImageList_LoadImage) WINCOMMCTRLAPI BOOL WINAPI ImageList_Replace(HIMAGELIST,INT,HBITMAP,HBITMAP);
HIMAGELIST WINAPI ImageList_Merge(HIMAGELIST,INT,HIMAGELIST,INT,INT,INT); WINCOMMCTRLAPI INT WINAPI ImageList_ReplaceIcon(HIMAGELIST,INT,HICON);
BOOL WINAPI ImageList_Remove(HIMAGELIST,INT); WINCOMMCTRLAPI COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF);
BOOL WINAPI ImageList_Replace(HIMAGELIST,INT,HBITMAP,HBITMAP); WINCOMMCTRLAPI BOOL WINAPI ImageList_SetDragCursorImage(HIMAGELIST,INT,INT,INT);
INT WINAPI ImageList_ReplaceIcon(HIMAGELIST,INT,HICON); WINCOMMCTRLAPI BOOL WINAPI ImageList_SetIconSize(HIMAGELIST,INT,INT);
COLORREF WINAPI ImageList_SetBkColor(HIMAGELIST,COLORREF); WINCOMMCTRLAPI BOOL WINAPI ImageList_SetImageCount(HIMAGELIST,UINT);
BOOL WINAPI ImageList_SetDragCursorImage(HIMAGELIST,INT,INT,INT); WINCOMMCTRLAPI BOOL WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT,INT);
BOOL WINAPI ImageList_SetIconSize(HIMAGELIST,INT,INT);
BOOL WINAPI ImageList_SetImageCount(HIMAGELIST,UINT);
BOOL WINAPI ImageList_SetOverlayImage(HIMAGELIST,INT,INT);
#ifdef __IStream_INTERFACE_DEFINED__ #ifdef __IStream_INTERFACE_DEFINED__
HIMAGELIST WINAPI ImageList_Read(LPSTREAM); WINCOMMCTRLAPI HIMAGELIST WINAPI ImageList_Read(LPSTREAM);
BOOL WINAPI ImageList_Write(HIMAGELIST,IStream*); WINCOMMCTRLAPI BOOL WINAPI ImageList_Write(HIMAGELIST,IStream*);
WINCOMMCTRLAPI HRESULT WINAPI ImageList_WriteEx(HIMAGELIST,DWORD,IStream*);
#define ILP_NORMAL 0 #define ILP_NORMAL 0
#define ILP_DOWNLEVEL 1 #define ILP_DOWNLEVEL 1
HRESULT WINAPI ImageList_WriteEx(HIMAGELIST,DWORD,IStream*);
#endif #endif
#define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon) #define ImageList_AddIcon(himl,hicon) ImageList_ReplaceIcon(himl,-1,hicon)
...@@ -641,7 +642,7 @@ typedef struct tagTRACKMOUSEEVENT { ...@@ -641,7 +642,7 @@ typedef struct tagTRACKMOUSEEVENT {
#endif #endif
BOOL WINAPI _TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack); WINCOMMCTRLAPI BOOL WINAPI _TrackMouseEvent(LPTRACKMOUSEEVENT lpEventTrack);
/* Flat Scrollbar control */ /* Flat Scrollbar control */
...@@ -673,27 +674,27 @@ static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_', ...@@ -673,27 +674,27 @@ static const WCHAR FLATSB_CLASSW[] = { 'f','l','a','t','s','b','_',
#define FSB_FLAT_MODE 2 #define FSB_FLAT_MODE 2
BOOL WINAPI FlatSB_EnableScrollBar(HWND, INT, UINT); WINCOMMCTRLAPI BOOL WINAPI FlatSB_EnableScrollBar(HWND, INT, UINT);
BOOL WINAPI FlatSB_ShowScrollBar(HWND, INT, BOOL); WINCOMMCTRLAPI BOOL WINAPI FlatSB_ShowScrollBar(HWND, INT, BOOL);
BOOL WINAPI FlatSB_GetScrollRange(HWND, INT, LPINT, LPINT); WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollRange(HWND, INT, LPINT, LPINT);
BOOL WINAPI FlatSB_GetScrollInfo(HWND, INT, LPSCROLLINFO); WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollInfo(HWND, INT, LPSCROLLINFO);
INT WINAPI FlatSB_GetScrollPos(HWND, INT); WINCOMMCTRLAPI INT WINAPI FlatSB_GetScrollPos(HWND, INT);
BOOL WINAPI FlatSB_GetScrollProp(HWND, INT, LPINT); WINCOMMCTRLAPI BOOL WINAPI FlatSB_GetScrollProp(HWND, INT, LPINT);
INT WINAPI FlatSB_SetScrollPos(HWND, INT, INT, BOOL); WINCOMMCTRLAPI INT WINAPI FlatSB_SetScrollPos(HWND, INT, INT, BOOL);
INT WINAPI FlatSB_SetScrollInfo(HWND, INT, LPSCROLLINFO, BOOL); WINCOMMCTRLAPI INT WINAPI FlatSB_SetScrollInfo(HWND, INT, LPSCROLLINFO, BOOL);
INT WINAPI FlatSB_SetScrollRange(HWND, INT, INT, INT, BOOL); WINCOMMCTRLAPI INT WINAPI FlatSB_SetScrollRange(HWND, INT, INT, INT, BOOL);
BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT, INT, BOOL); WINCOMMCTRLAPI BOOL WINAPI FlatSB_SetScrollProp(HWND, UINT, INT, BOOL);
BOOL WINAPI InitializeFlatSB(HWND); WINCOMMCTRLAPI BOOL WINAPI InitializeFlatSB(HWND);
HRESULT WINAPI UninitializeFlatSB(HWND); WINCOMMCTRLAPI HRESULT WINAPI UninitializeFlatSB(HWND);
/* Subclassing stuff */ /* Subclassing stuff */
typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR); typedef LRESULT (CALLBACK *SUBCLASSPROC)(HWND, UINT, WPARAM, LPARAM, UINT_PTR, DWORD_PTR);
BOOL WINAPI SetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR); WINCOMMCTRLAPI BOOL WINAPI SetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR);
BOOL WINAPI GetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR*); WINCOMMCTRLAPI BOOL WINAPI GetWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR*);
BOOL WINAPI RemoveWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR); WINCOMMCTRLAPI BOOL WINAPI RemoveWindowSubclass(HWND, SUBCLASSPROC, UINT_PTR);
LRESULT WINAPI DefSubclassProc(HWND, UINT, WPARAM, LPARAM); WINCOMMCTRLAPI LRESULT WINAPI DefSubclassProc(HWND, UINT, WPARAM, LPARAM);
int WINAPI DrawShadowText(HDC, LPCWSTR, UINT, RECT*, DWORD, COLORREF, COLORREF, int, int); WINCOMMCTRLAPI int WINAPI DrawShadowText(HDC, LPCWSTR, UINT, RECT*, DWORD, COLORREF, COLORREF, int, int);
/* Header control */ /* Header control */
...@@ -5148,11 +5149,11 @@ typedef struct _DSA *HDSA; ...@@ -5148,11 +5149,11 @@ typedef struct _DSA *HDSA;
typedef INT (CALLBACK *PFNDSAENUMCALLBACK)(LPVOID, LPVOID); typedef INT (CALLBACK *PFNDSAENUMCALLBACK)(LPVOID, LPVOID);
HDSA WINAPI DSA_Create(INT, INT); WINCOMMCTRLAPI HDSA WINAPI DSA_Create(INT, INT);
BOOL WINAPI DSA_Destroy(HDSA); WINCOMMCTRLAPI BOOL WINAPI DSA_Destroy(HDSA);
void WINAPI DSA_DestroyCallback(HDSA, PFNDSAENUMCALLBACK, LPVOID); WINCOMMCTRLAPI void WINAPI DSA_DestroyCallback(HDSA, PFNDSAENUMCALLBACK, LPVOID);
LPVOID WINAPI DSA_GetItemPtr(HDSA, INT); WINCOMMCTRLAPI LPVOID WINAPI DSA_GetItemPtr(HDSA, INT);
INT WINAPI DSA_InsertItem(HDSA, INT, LPVOID); WINCOMMCTRLAPI INT WINAPI DSA_InsertItem(HDSA, INT, LPVOID);
#define DPAS_SORTED 0x0001 #define DPAS_SORTED 0x0001
#define DPAS_INSERTBEFORE 0x0002 #define DPAS_INSERTBEFORE 0x0002
...@@ -5179,22 +5180,22 @@ typedef PVOID (CALLBACK *PFNDPAMERGE)(UINT,PVOID,PVOID,LPARAM); ...@@ -5179,22 +5180,22 @@ typedef PVOID (CALLBACK *PFNDPAMERGE)(UINT,PVOID,PVOID,LPARAM);
#define DPAM_UNION 0x00000004 #define DPAM_UNION 0x00000004
#define DPAM_INTERSECT 0x00000008 #define DPAM_INTERSECT 0x00000008
HDPA WINAPI DPA_Clone(const HDPA, HDPA); WINCOMMCTRLAPI HDPA WINAPI DPA_Clone(const HDPA, HDPA);
HDPA WINAPI DPA_Create(INT); WINCOMMCTRLAPI HDPA WINAPI DPA_Create(INT);
BOOL WINAPI DPA_Destroy(HDPA); WINCOMMCTRLAPI BOOL WINAPI DPA_Destroy(HDPA);
LPVOID WINAPI DPA_DeletePtr(HDPA, INT); WINCOMMCTRLAPI LPVOID WINAPI DPA_DeletePtr(HDPA, INT);
BOOL WINAPI DPA_DeleteAllPtrs(HDPA); WINCOMMCTRLAPI BOOL WINAPI DPA_DeleteAllPtrs(HDPA);
BOOL WINAPI DPA_SetPtr(HDPA, INT, LPVOID); WINCOMMCTRLAPI BOOL WINAPI DPA_SetPtr(HDPA, INT, LPVOID);
LPVOID WINAPI DPA_GetPtr(HDPA, INT_PTR); WINCOMMCTRLAPI LPVOID WINAPI DPA_GetPtr(HDPA, INT_PTR);
INT WINAPI DPA_GetPtrIndex(HDPA, LPCVOID); WINCOMMCTRLAPI INT WINAPI DPA_GetPtrIndex(HDPA, LPCVOID);
ULONGLONG WINAPI DPA_GetSize(HDPA); WINCOMMCTRLAPI ULONGLONG WINAPI DPA_GetSize(HDPA);
BOOL WINAPI DPA_Grow(HDPA, INT); WINCOMMCTRLAPI BOOL WINAPI DPA_Grow(HDPA, INT);
INT WINAPI DPA_InsertPtr(HDPA, INT, LPVOID); WINCOMMCTRLAPI INT WINAPI DPA_InsertPtr(HDPA, INT, LPVOID);
BOOL WINAPI DPA_Sort(HDPA, PFNDPACOMPARE, LPARAM); WINCOMMCTRLAPI BOOL WINAPI DPA_Sort(HDPA, PFNDPACOMPARE, LPARAM);
void WINAPI DPA_EnumCallback(HDPA, PFNDPAENUMCALLBACK, LPVOID); WINCOMMCTRLAPI void WINAPI DPA_EnumCallback(HDPA, PFNDPAENUMCALLBACK, LPVOID);
void WINAPI DPA_DestroyCallback(HDPA, PFNDPAENUMCALLBACK, LPVOID); WINCOMMCTRLAPI void WINAPI DPA_DestroyCallback(HDPA, PFNDPAENUMCALLBACK, LPVOID);
INT WINAPI DPA_Search(HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT); WINCOMMCTRLAPI INT WINAPI DPA_Search(HDPA, LPVOID, INT, PFNDPACOMPARE, LPARAM, UINT);
BOOL WINAPI DPA_Merge(HDPA, HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM); WINCOMMCTRLAPI BOOL WINAPI DPA_Merge(HDPA, HDPA, DWORD, PFNDPACOMPARE, PFNDPAMERGE, LPARAM);
/* save/load from stream */ /* save/load from stream */
typedef struct _DPASTREAMINFO typedef struct _DPASTREAMINFO
...@@ -5206,10 +5207,10 @@ typedef struct _DPASTREAMINFO ...@@ -5206,10 +5207,10 @@ typedef struct _DPASTREAMINFO
struct IStream; struct IStream;
typedef HRESULT (CALLBACK *PFNDPASTREAM)(DPASTREAMINFO*, struct IStream*, LPVOID); typedef HRESULT (CALLBACK *PFNDPASTREAM)(DPASTREAMINFO*, struct IStream*, LPVOID);
HRESULT WINAPI DPA_LoadStream(HDPA*, PFNDPASTREAM, struct IStream*, LPVOID); WINCOMMCTRLAPI HRESULT WINAPI DPA_LoadStream(HDPA*, PFNDPASTREAM, struct IStream*, LPVOID);
HRESULT WINAPI DPA_SaveStream(HDPA, PFNDPASTREAM, struct IStream*, LPVOID); WINCOMMCTRLAPI HRESULT WINAPI DPA_SaveStream(HDPA, PFNDPASTREAM, struct IStream*, LPVOID);
BOOL WINAPI Str_SetPtrW (LPWSTR *, LPCWSTR); WINCOMMCTRLAPI BOOL WINAPI Str_SetPtrW (LPWSTR *, LPCWSTR);
/************************************************************************** /**************************************************************************
* SysLink control * SysLink control
...@@ -5554,9 +5555,9 @@ typedef struct _TASKDIALOGCONFIG ...@@ -5554,9 +5555,9 @@ typedef struct _TASKDIALOGCONFIG
UINT cxWidth; UINT cxWidth;
} TASKDIALOGCONFIG; } TASKDIALOGCONFIG;
HRESULT WINAPI TaskDialog(HWND owner, HINSTANCE hinst, const WCHAR *title, const WCHAR *main_instruction, WINCOMMCTRLAPI HRESULT WINAPI TaskDialog(HWND owner, HINSTANCE hinst, const WCHAR *title, const WCHAR *main_instruction,
const WCHAR *content, TASKDIALOG_COMMON_BUTTON_FLAGS common_buttons, const WCHAR *icon, int *button); const WCHAR *content, TASKDIALOG_COMMON_BUTTON_FLAGS common_buttons, const WCHAR *icon, int *button);
HRESULT WINAPI TaskDialogIndirect(const TASKDIALOGCONFIG *, int *, int *, BOOL *); WINCOMMCTRLAPI HRESULT WINAPI TaskDialogIndirect(const TASKDIALOGCONFIG *, int *, int *, BOOL *);
#include <poppack.h> #include <poppack.h>
......
...@@ -23,6 +23,14 @@ ...@@ -23,6 +23,14 @@
extern "C" { extern "C" {
#endif #endif
#ifndef WINCOMMCTRLAPI
#ifdef _COMCTL32_
# define WINCOMMCTRLAPI
#else
# define WINCOMMCTRLAPI DECLSPEC_IMPORT
#endif
#endif
/* /*
* Property sheet support (callback procs) * Property sheet support (callback procs)
...@@ -276,13 +284,13 @@ typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW; ...@@ -276,13 +284,13 @@ typedef const PROPSHEETHEADERW *LPCPROPSHEETHEADERW;
/* /*
* Property sheet support (methods) * Property sheet support (methods)
*/ */
INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA); WINCOMMCTRLAPI INT_PTR WINAPI PropertySheetA(LPCPROPSHEETHEADERA);
INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW); WINCOMMCTRLAPI INT_PTR WINAPI PropertySheetW(LPCPROPSHEETHEADERW);
#define PropertySheet WINELIB_NAME_AW(PropertySheet) #define PropertySheet WINELIB_NAME_AW(PropertySheet)
HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA); WINCOMMCTRLAPI HPROPSHEETPAGE WINAPI CreatePropertySheetPageA(LPCPROPSHEETPAGEA);
HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW); WINCOMMCTRLAPI HPROPSHEETPAGE WINAPI CreatePropertySheetPageW(LPCPROPSHEETPAGEW);
#define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage) #define CreatePropertySheetPage WINELIB_NAME_AW(CreatePropertySheetPage)
BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage); WINCOMMCTRLAPI BOOL WINAPI DestroyPropertySheetPage(HPROPSHEETPAGE hPropPage);
/* /*
* Property sheet support (UNICODE-Winelib) * Property sheet support (UNICODE-Winelib)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment