We don't yet want the static control to call DestroyIcon.

This commit is contained in:
Huw D M Davies 1998-12-07 12:50:14 +00:00 committed by Alexandre Julliard
parent be1566613c
commit 1fea6b9623
1 changed files with 11 additions and 3 deletions

View File

@ -218,10 +218,18 @@ LRESULT WINAPI StaticWndProc( HWND32 hWnd, UINT32 uMsg, WPARAM32 wParam,
break;
case WM_NCDESTROY:
if (style == SS_ICON)
DestroyIcon32( STATIC_SetIcon( wndPtr, 0 ) );
else
if (style == SS_ICON) {
/*
* FIXME
* DestroyIcon32( STATIC_SetIcon( wndPtr, 0 ) );
*
* We don't want to do this yet because DestroyIcon32 is broken. If the icon
* had already been loaded by the application the last thing we want to do is
* GlobalFree16 the handle.
*/
} else {
lResult = DefWindowProc32A( hWnd, uMsg, wParam, lParam );
}
break;
case WM_PAINT: