diff options
| author | Pietro Gagliardi <[email protected]> | 2014-08-16 14:02:00 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-08-16 14:02:00 -0400 |
| commit | 8702763137970e14f0c7eeb8004cf639c4e0e263 (patch) | |
| tree | b4be74623642825390a55418e4f35f5b672df92e /redo/comctl32_windows.c | |
| parent | 3ac3a724717dd31a053106cf13ad1265630f4124 (diff) | |
Added the beginning of ImageList, including the Windows implementation.
Diffstat (limited to 'redo/comctl32_windows.c')
| -rw-r--r-- | redo/comctl32_windows.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/redo/comctl32_windows.c b/redo/comctl32_windows.c index 6af4f30..9dd67c1 100644 --- a/redo/comctl32_windows.c +++ b/redo/comctl32_windows.c @@ -9,6 +9,8 @@ static HMODULE comctl32; BOOL (*WINAPI fv_SetWindowSubclass)(HWND, SUBCLASSPROC, UINT_PTR, DWORD_PTR); BOOL (*WINAPI fv_RemoveWindowSubclass)(HWND, SUBCLASSPROC, UINT_PTR); LRESULT (*WINAPI fv_DefSubclassProc)(HWND, UINT, WPARAM, LPARAM); +HIMAGELIST (*WINAPI fv_ImageList_Create)(int, int, UINT, int, int); +int (*WINAPI fv_ImageList_Add)(HIMAGELIST, HBITMAP, HBITMAP); #define wantedICCClasses ( \ ICC_PROGRESS_CLASS | /* progress bars */ \ @@ -115,6 +117,11 @@ DWORD initCommonControls(char **errmsg) fv_RemoveWindowSubclass = (BOOL (*WINAPI)(HWND, SUBCLASSPROC, UINT_PTR)) f; LOAD("DefSubclassProc"); fv_DefSubclassProc = (LRESULT (*WINAPI)(HWND, UINT, WPARAM, LPARAM)) f; + LOAD("ImageList_Create"); + fv_ImageList_Create = (HIMAGELIST (*WINAPI)(int, int, UINT, int, int)) f; + LOAD("ImageList_Add"); + fv_ImageList_Add = (int (*WINAPI)(HIMAGELIST, HBITMAP, HBITMAP)) f; + if ((*ficc)(&icc) == FALSE) { *errmsg = "error initializing Common Controls (comctl32.dll)"; |
