mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
tinus <o112w8r02@sneakemail.com>
Properly allow removing toolbar bitmaps by changing it into 0. svn path=/trunk/; revision=13269
This commit is contained in:
parent
e032cf1fe8
commit
0b1105fc94
1 changed files with 2 additions and 1 deletions
|
@ -4269,7 +4269,7 @@ TOOLBAR_ReplaceBitmap (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|||
LPTBREPLACEBITMAP lpReplace = (LPTBREPLACEBITMAP) lParam;
|
||||
HBITMAP hBitmap;
|
||||
int i = 0, nOldButtons = 0, pos = 0;
|
||||
int nOldBitmaps, nNewBitmaps;
|
||||
int nOldBitmaps, nNewBitmaps = 0;
|
||||
HIMAGELIST himlDef = 0;
|
||||
|
||||
TRACE("hInstOld %p nIDOld %x hInstNew %p nIDNew %x nButtons %x\n",
|
||||
|
@ -4322,6 +4322,7 @@ TOOLBAR_ReplaceBitmap (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|||
for (i = pos + nOldBitmaps - 1; i >= pos; i--)
|
||||
ImageList_Remove(himlDef, i);
|
||||
|
||||
if (hBitmap)
|
||||
{
|
||||
BITMAP bmp;
|
||||
HBITMAP hOldBitmapBitmap, hOldBitmapLoad, hbmLoad;
|
||||
|
|
Loading…
Reference in a new issue