win32: request frame invalidation after every icon change operation

git-svn-id: trunk@17228 -
This commit is contained in:
paul 2008-11-05 02:42:32 +00:00
parent 6353e4b2da
commit 5a32fcc6f6

View File

@ -425,6 +425,9 @@ begin
SendMessage(Wnd, WM_SETICON, ICON_BIG, LPARAM(Big));
SetClassLong(Wnd, GCL_HICON, LONG(Big));
// for some reason sometimes frame does not invalidate itself. lets ask it to invalidate always
Windows.RedrawWindow(Wnd, nil, 0,
RDW_INVALIDATE or RDW_FRAME or RDW_NOCHILDREN or RDW_ERASE);
end;
class procedure TWin32WSCustomForm.SetShowInTaskbar(const AForm: TCustomForm;