카테고리 없음
[윈도우즈 API] TreeView의 hint popup 없애기
쇼핑스크래퍼3
2023. 9. 15. 08:29
// TreeView의 특정 node가 전체 TreeView의 크기축소로 인하여
// 전부 나타나지 않을때 TreeView 는 자동으로 가려진 node를 hint 로 표시합니다
// 아래는 자동으로 나타나는 hint를 방지하는 소스입니다
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
ComCtrls, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
TreeView1: TTreeView;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
SetWindowLong(TreeView1.Handle, GWL_STYLE,
GetWindowLong(TreeView1.Handle,GWL_STYLE) or $80);
end;
end.