mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 02:36:13 +00:00
[EXPLORER] remove dead code CID 1321923, 1321924
svn path=/trunk/; revision=68923
This commit is contained in:
parent
a6e0a15e60
commit
831d7c9721
1 changed files with 4 additions and 11 deletions
|
@ -190,7 +190,7 @@ DefSize:
|
||||||
HDC hDC = NULL;
|
HDC hDC = NULL;
|
||||||
HDC hDCScreen = NULL;
|
HDC hDCScreen = NULL;
|
||||||
SIZE Size, SmallIcon;
|
SIZE Size, SmallIcon;
|
||||||
HBITMAP hbmpOld, hbmp = NULL;
|
HBITMAP hbmpOld;
|
||||||
HBITMAP hBitmap = NULL;
|
HBITMAP hBitmap = NULL;
|
||||||
HICON hIconStart;
|
HICON hIconStart;
|
||||||
BOOL Ret;
|
BOOL Ret;
|
||||||
|
@ -243,10 +243,10 @@ DefSize:
|
||||||
Size.cy = max(Size.cy, SmallIcon.cy);
|
Size.cy = max(Size.cy, SmallIcon.cy);
|
||||||
|
|
||||||
/* Create the bitmap */
|
/* Create the bitmap */
|
||||||
hbmp = CreateCompatibleBitmap(hDCScreen,
|
hBitmap = CreateCompatibleBitmap(hDCScreen,
|
||||||
Size.cx,
|
Size.cx,
|
||||||
Size.cy);
|
Size.cy);
|
||||||
if (hbmp == NULL)
|
if (hBitmap == NULL)
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
|
|
||||||
/* Caluclate the button rect */
|
/* Caluclate the button rect */
|
||||||
|
@ -256,7 +256,7 @@ DefSize:
|
||||||
rcButton.bottom = Size.cy;
|
rcButton.bottom = Size.cy;
|
||||||
|
|
||||||
/* Draw the button */
|
/* Draw the button */
|
||||||
hbmpOld = (HBITMAP) SelectObject(hDC, hbmp);
|
hbmpOld = (HBITMAP) SelectObject(hDC, hBitmap);
|
||||||
|
|
||||||
Flags = DC_TEXT | DC_INBUTTON;
|
Flags = DC_TEXT | DC_INBUTTON;
|
||||||
if (hIconStart != NULL)
|
if (hIconStart != NULL)
|
||||||
|
@ -275,19 +275,12 @@ DefSize:
|
||||||
if (!Ret)
|
if (!Ret)
|
||||||
goto Cleanup;
|
goto Cleanup;
|
||||||
|
|
||||||
/* We successfully created the bitmap! */
|
|
||||||
hBitmap = hbmp;
|
|
||||||
hbmp = NULL;
|
|
||||||
|
|
||||||
Cleanup:
|
Cleanup:
|
||||||
if (hDCScreen != NULL)
|
if (hDCScreen != NULL)
|
||||||
{
|
{
|
||||||
::ReleaseDC(NULL, hDCScreen);
|
::ReleaseDC(NULL, hDCScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hbmp != NULL)
|
|
||||||
DeleteObject(hbmp);
|
|
||||||
|
|
||||||
if (hDC != NULL)
|
if (hDC != NULL)
|
||||||
DeleteDC(hDC);
|
DeleteDC(hDC);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue