mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-22 01:59:12 +02:00
* fixed customdraw patch crash
git-svn-id: trunk@9773 -
This commit is contained in:
parent
f5476de4bb
commit
5aba460c97
@ -1569,11 +1569,6 @@ begin
|
|||||||
if WindowInfo^.WinControl <> nil then
|
if WindowInfo^.WinControl <> nil then
|
||||||
lWinControl := WindowInfo^.WinControl;
|
lWinControl := WindowInfo^.WinControl;
|
||||||
end;
|
end;
|
||||||
NM_CUSTOMDRAW:
|
|
||||||
begin
|
|
||||||
if WindowInfo^.WinControl is TListView //what about TCustomlistView
|
|
||||||
then HandleListViewCustomDraw(TListView(WindowInfo^.WinControl));
|
|
||||||
end;
|
|
||||||
UDN_DELTAPOS:
|
UDN_DELTAPOS:
|
||||||
begin
|
begin
|
||||||
if WindowInfo^.WinControl <> nil then
|
if WindowInfo^.WinControl <> nil then
|
||||||
@ -1590,6 +1585,11 @@ begin
|
|||||||
case code of
|
case code of
|
||||||
TCN_SELCHANGE:
|
TCN_SELCHANGE:
|
||||||
idFrom := ShowHideTabPage(HWndFrom, true);
|
idFrom := ShowHideTabPage(HWndFrom, true);
|
||||||
|
NM_CUSTOMDRAW:
|
||||||
|
begin
|
||||||
|
if WindowInfo^.WinControl is TListView //what about TCustomlistView
|
||||||
|
then HandleListViewCustomDraw(TListView(WindowInfo^.WinControl));
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user