* fixed customdraw patch crash

git-svn-id: trunk@9773 -
This commit is contained in:
marc 2006-08-31 11:45:22 +00:00
parent f5476de4bb
commit 5aba460c97

View File

@ -1569,11 +1569,6 @@ begin
if WindowInfo^.WinControl <> nil then
lWinControl := WindowInfo^.WinControl;
end;
NM_CUSTOMDRAW:
begin
if WindowInfo^.WinControl is TListView //what about TCustomlistView
then HandleListViewCustomDraw(TListView(WindowInfo^.WinControl));
end;
UDN_DELTAPOS:
begin
if WindowInfo^.WinControl <> nil then
@ -1590,6 +1585,11 @@ begin
case code of
TCN_SELCHANGE:
idFrom := ShowHideTabPage(HWndFrom, true);
NM_CUSTOMDRAW:
begin
if WindowInfo^.WinControl is TListView //what about TCustomlistView
then HandleListViewCustomDraw(TListView(WindowInfo^.WinControl));
end;
end;
end;
end;