- Rebar cursors must be destroyed with DestroyCursor and not with DeleteObject.

svn path=/trunk/; revision=11938
This commit is contained in:
Filip Navara 2004-12-05 01:12:56 +00:00
parent 245bf5efa5
commit ace6b4cce4

View file

@ -3786,10 +3786,10 @@ REBAR_Destroy (REBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
infoPtr->bands = NULL;
}
DeleteObject (infoPtr->hcurArrow);
DeleteObject (infoPtr->hcurHorz);
DeleteObject (infoPtr->hcurVert);
DeleteObject (infoPtr->hcurDrag);
DestroyCursor (infoPtr->hcurArrow);
DestroyCursor (infoPtr->hcurHorz);
DestroyCursor (infoPtr->hcurVert);
DestroyCursor (infoPtr->hcurDrag);
if(infoPtr->hDefaultFont) DeleteObject (infoPtr->hDefaultFont);
SetWindowLongPtrW (infoPtr->hwndSelf, 0, 0);