Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
69a93593
Commit
69a93593
authored
Nov 23, 1999
by
Eric Kohl
Committed by
Alexandre Julliard
Nov 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- first 'dummy' implementation of ImageList_Read
parent
70e0969e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
5 deletions
+34
-5
imagelist.c
dlls/comctl32/imagelist.c
+19
-5
imagelist.h
include/imagelist.h
+15
-0
No files found.
dlls/comctl32/imagelist.c
View file @
69a93593
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "imagelist.h"
#include "imagelist.h"
#include "commctrl.h"
#include "commctrl.h"
#include "debugtools.h"
#include "debugtools.h"
#include "winerror.h"
DEFAULT_DEBUG_CHANNEL
(
imagelist
)
DEFAULT_DEBUG_CHANNEL
(
imagelist
)
...
@@ -1904,10 +1905,23 @@ ImageList_Merge (HIMAGELIST himl1, INT i1, HIMAGELIST himl2, INT i2,
...
@@ -1904,10 +1905,23 @@ ImageList_Merge (HIMAGELIST himl1, INT i1, HIMAGELIST himl2, INT i2,
HIMAGELIST
WINAPI
ImageList_Read
(
LPSTREAM
pstm
)
HIMAGELIST
WINAPI
ImageList_Read
(
LPSTREAM
pstm
)
{
{
FIXME
(
"empty stub!
\n
"
);
HRESULT
errCode
;
ULONG
ulRead
;
ILHEAD
ilHead
;
HIMAGELIST
himl
;
FIXME
(
"empty stub!
\n
"
);
errCode
=
IStream_Read
(
pstm
,
&
ilHead
,
sizeof
(
ILHEAD
),
&
ulRead
);
if
(
errCode
!=
S_OK
)
return
NULL
;
return
NULL
;
FIXME
(
"Magic: 0x%x
\n
"
,
ilHead
.
usMagic
);
himl
=
ImageList_Create
(
32
,
32
,
ILD_NORMAL
,
2
,
2
);
return
himl
;
}
}
...
@@ -2390,13 +2404,13 @@ ImageList_SetImageCount (HIMAGELIST himl, INT iImageCount)
...
@@ -2390,13 +2404,13 @@ ImageList_SetImageCount (HIMAGELIST himl, INT iImageCount)
/* copy images */
/* copy images */
BitBlt
(
hdcBitmap
,
0
,
0
,
nCopyCount
*
himl
->
cx
,
himl
->
cy
,
BitBlt
(
hdcBitmap
,
0
,
0
,
nCopyCount
*
himl
->
cx
,
himl
->
cy
,
hdcImageList
,
0
,
0
,
SRCCOPY
);
hdcImageList
,
0
,
0
,
SRCCOPY
);
#if 0
/* delete 'empty' image space */
/* delete 'empty' image space */
SetBkColor (hdcBitmap, RGB(255, 255, 255));
SetBkColor (hdcBitmap, RGB(255, 255, 255));
SetTextColor (hdcBitmap, RGB(0, 0, 0));
SetTextColor (hdcBitmap, RGB(0, 0, 0));
PatBlt (hdcBitmap, nCopyCount * himl->cx, 0,
PatBlt (hdcBitmap, nCopyCount * himl->cx, 0,
(nNewCount - nCopyCount) * himl->cx, himl->cy, BLACKNESS);
(nNewCount - nCopyCount) * himl->cx, himl->cy, BLACKNESS);
#endif
DeleteObject
(
himl
->
hbmImage
);
DeleteObject
(
himl
->
hbmImage
);
himl
->
hbmImage
=
hbmNewBitmap
;
himl
->
hbmImage
=
hbmNewBitmap
;
}
}
...
@@ -2415,13 +2429,13 @@ ImageList_SetImageCount (HIMAGELIST himl, INT iImageCount)
...
@@ -2415,13 +2429,13 @@ ImageList_SetImageCount (HIMAGELIST himl, INT iImageCount)
/* copy images */
/* copy images */
BitBlt
(
hdcBitmap
,
0
,
0
,
nCopyCount
*
himl
->
cx
,
himl
->
cy
,
BitBlt
(
hdcBitmap
,
0
,
0
,
nCopyCount
*
himl
->
cx
,
himl
->
cy
,
hdcImageList
,
0
,
0
,
SRCCOPY
);
hdcImageList
,
0
,
0
,
SRCCOPY
);
#if 0
/* delete 'empty' image space */
/* delete 'empty' image space */
SetBkColor (hdcBitmap, RGB(255, 255, 255));
SetBkColor (hdcBitmap, RGB(255, 255, 255));
SetTextColor (hdcBitmap, RGB(0, 0, 0));
SetTextColor (hdcBitmap, RGB(0, 0, 0));
PatBlt (hdcBitmap, nCopyCount * himl->cx, 0,
PatBlt (hdcBitmap, nCopyCount * himl->cx, 0,
(nNewCount - nCopyCount) * himl->cx, himl->cy, BLACKNESS);
(nNewCount - nCopyCount) * himl->cx, himl->cy, BLACKNESS);
#endif
DeleteObject
(
himl
->
hbmMask
);
DeleteObject
(
himl
->
hbmMask
);
himl
->
hbmMask
=
hbmNewBitmap
;
himl
->
hbmMask
=
hbmNewBitmap
;
}
}
...
...
include/imagelist.h
View file @
69a93593
...
@@ -30,5 +30,20 @@ struct _IMAGELIST
...
@@ -30,5 +30,20 @@ struct _IMAGELIST
typedef
struct
_IMAGELIST
*
HIMAGELIST
;
typedef
struct
_IMAGELIST
*
HIMAGELIST
;
/* header used by ImageList_Read() and ImageList_Write() */
typedef
struct
_ILHEAD
{
USHORT
usMagic
;
USHORT
usParam1
;
INT
Param2
;
INT
Param3
;
INT
Param4
;
INT
Param5
;
INT
Param6
;
INT
Param7
;
}
ILHEAD
;
#endif
/* __WINE_IMAGELIST_H */
#endif
/* __WINE_IMAGELIST_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment