timage 继承于 Tgraghcontrol 没有 handle 怎么给加 handle 是不是很麻烦?TMyImage = class(TImage)
private
FHandle: HWnd;
procedure WndProc(var Msg: TMessage);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
property Handle: read FHandle;
end; constructor TMyImage.Create...
begin
...
FHandle:=AllocateHWnd(WndProc);
end; destructor TMyImage.Destroy...
begin
DeAllocateHWnd(FHandle);
inherited;
end; procedure TMyImage.WndProc(var Msg: TMessage);
begin
... // 这里应该怎那实现????
end;
private
FHandle: HWnd;
procedure WndProc(var Msg: TMessage);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
published
property Handle: read FHandle;
end; constructor TMyImage.Create...
begin
...
FHandle:=AllocateHWnd(WndProc);
end; destructor TMyImage.Destroy...
begin
DeAllocateHWnd(FHandle);
inherited;
end; procedure TMyImage.WndProc(var Msg: TMessage);
begin
... // 这里应该怎那实现????
end;
解决方案 »
- PE加空Section的方法。
- TreeView多层怎么创建啊?
- 大家是用D7还是D8的?
- 请教:如何用Delphi实现添加一NT用户并且添加到Administrators组里面?
- info power控件问题wwDBLookupComboDlg1???
- 狂吐血,不能访问 Self 的 private 成员!语法上肯定没有问题!
- 关于字符串查找的问题,请高手帮忙!谢谢!!!!!!
- VCLSkin文件 文件怎么编辑。版本是 4.11的
- 一个小菜的问题?看你有没有能力回答。。。。
- 怎么判断一个程序正在运行,不能让程序重复启动
- 急用!!帮我做一个查询系统
- 如何将stringgrid的内容弄到word里面去
你不如直接引用
Image.Canvas.Handle
我想 把 image 切成不规则窗体 主要是完成 画斜线功能
而且这个线是可以操作的 所以点击的时候不想有 方框
最好还能得到焦点 所以得让他变成 wincontrol
是不是很麻烦? 能做到吗?十万火急!!
EMAIL: [email protected]
TWinControl 继承太麻烦了吧 我要的主要功能是图形 画线