mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-11 12:20:37 +01:00
implemented ListBoxGetItemRect for win32 (fixes issue #7224)
git-svn-id: trunk@9730 -
This commit is contained in:
parent
71e5337167
commit
3f490c687d
@ -244,4 +244,13 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TWin32WidgetSet.GetListBoxItemRect(ListBox: TComponent;
|
||||
Index: integer; var ARect: TRect): boolean;
|
||||
begin
|
||||
Result := false;
|
||||
if ListBox is TCustomListBox then
|
||||
Result := Windows.SendMessage(TCustomListBox(ListBox).Handle,
|
||||
LB_GETITEMRECT, Index, LPARAM(@ARect)) <> LB_ERR;
|
||||
end;
|
||||
|
||||
//##apiwiz##eps## // Do not remove, no wizard declaration after this line
|
||||
|
||||
@ -41,6 +41,7 @@ procedure DrawArrow(Arrow: TComponent; Canvas: TPersistent); override;
|
||||
function GetAcceleratorString(const AVKey: Byte; const AShiftState: TShiftState): String; override;
|
||||
function GetControlConstraints(Constraints: TObject): boolean; override;
|
||||
function GetListBoxIndexAtY(ListBox: TComponent; y: integer): integer; override;
|
||||
function GetListBoxItemRect(ListBox: TComponent; Index: integer; var ARect: TRect): boolean; override;
|
||||
|
||||
procedure RemoveEventHandler(var AHandler: PEventHandler); override;
|
||||
procedure RemovePipeEventHandler(var AHandler: PPipeEventHandler); override;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user