fixed handling WM_MEASUREITEM for OwnerdrawnFixed listbox.

git-svn-id: trunk@7239 -
This commit is contained in:
vincents 2005-06-14 07:30:51 +00:00
parent 7e13a73664
commit ed91996ba9

View File

@ -1244,16 +1244,12 @@ Begin
if WParam=0 then begin if WParam=0 then begin
// todo: it's a menu // todo: it's a menu
end else begin end else begin
// find child handle based on it's CtlID LWinControl := TWinControl(WParam);
TargetWindow := GetDlgItem(Window, WParam); if LWinControl<>nil then begin
if TargetWindow<>0 then begin LMessage.Msg := LM_MEASUREITEM;
LWinControl := GetWindowInfo(TargetWindow)^.WinControl; LMessage.LParam := LParam;
if LWinControl<>nil then begin LMessage.WParam := WParam;
LMessage.Msg := LM_MEASUREITEM; Winprocess := False;
LMessage.LParam := LParam;
LMessage.WParam := WParam;
Winprocess := False;
end;
end; end;
end; end;
end; end;
@ -1601,6 +1597,9 @@ end;
{ {
$Log$ $Log$
Revision 1.210 2005/06/14 07:30:51 vincents
fixed handling WM_MEASUREITEM for OwnerdrawnFixed listbox.
Revision 1.209 2005/06/13 08:04:38 vincents Revision 1.209 2005/06/13 08:04:38 vincents
fixed crashed with csOwnerDrawVariable combobox style (bug 934) from Jesus fixed crashed with csOwnerDrawVariable combobox style (bug 934) from Jesus