不可移动的窗体
2010-03-29 22:51
281 查看
procedure windowsposchange(var Msg:TWMWINDOWPOSCHANGING);message WM_WINDOWPOSCHANGING;
var
Form13: TForm13;
//
oleft:integer;
otop:integer;
owidth:integer;
oHeight:integer;
implementation
{$R *.dfm}
procedure TForm13.FormCreate(Sender: TObject);
begin
oleft:=Left;
otop:=Top;
owidth:=Width;
oheight:=Height;
end;
procedure TForm13.windowsposchange(var Msg:TWMWINDOWPOSCHANGING);
begin
Msg.WindowPos.x:=oleft;
Msg.windowpos.y:=otop;
Msg.windowpos.cx:=owidth;
Msg.windowpos.cy:=oheight;
inherited;
end;
var
Form13: TForm13;
//
oleft:integer;
otop:integer;
owidth:integer;
oHeight:integer;
implementation
{$R *.dfm}
procedure TForm13.FormCreate(Sender: TObject);
begin
oleft:=Left;
otop:=Top;
owidth:=Width;
oheight:=Height;
end;
procedure TForm13.windowsposchange(var Msg:TWMWINDOWPOSCHANGING);
begin
Msg.WindowPos.x:=oleft;
Msg.windowpos.y:=otop;
Msg.windowpos.cx:=owidth;
Msg.windowpos.cy:=oheight;
inherited;
end;
相关文章推荐
- 使窗体不可移动
- C#设置MDI子窗体不可移动
- C# WinForm:怎样使有标题栏的Form窗体不可移动?
- vb设置窗体不可移动
- C#设置MDI子窗体不可移动
- vb设置窗体不可移动
- 不可移动的窗体
- Winform"窗体加载闪烁处理、无边框窗体的移动" 之 配餐系统的开发
- Winform 无标题栏可以移动窗体
- "窗体加载闪烁处理、无边框窗体的移动" 之 配餐系统的开发
- 实现propertyGrid下拉自定义窗体并且不可编辑
- VC中使窗体无法被移动(move)和放大缩小(resize)的方法
- 移动窗体
- C# 无边框窗体之窗体移动
- C# FORM中创建圆形窗体 + 移动窗体
- flex 弹窗口嵌套iframe,移动窗体iframe内容不显示了问题处理
- C#中无边框窗体随意移动代码
- DataGrid:鼠标移动行变色、单击行弹出提示窗体
- 设置鼠标可以移动窗体
- QT实现无边框的可移动窗体