标题:可以幫忙我分析一下程序的嗎?謝謝啦
只看楼主
aaron52088
Rank: 1
等 级:新手上路
帖 子:130
专家分:0
注 册:2007-1-24
 问题点数:0 回复次数:0 
可以幫忙我分析一下程序的嗎?謝謝啦
procedure TForm1.Panel2MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
ReleaseCapture;
if (x>=0)and(x<=3) then
begin
if (y>=0)and(y<=3) then Panel2.Perform(WM_SysCommand,$F004,0);
// Panel2.Perform(WM_SysCommand,$F004,0)這個什麽意思呢?

if (y>3)and(y<Panel2.Height-3) then Panel2.Perform(WM_SysCommand,$F001,0);
if (y>=Panel2.Height-3)and(y<=Panel2.Height) then Panel2.Perform(WM_SysCommand,$F007,0);
end
else if (x>3)and(x<Panel2.Width-3) then
begin
if (y>=0)and(y<=3) then Panel2.Perform(WM_SysCommand,$F003,0);
if (y>3)and(y<Panel2.Height-3) then Panel2.Perform(WM_SysCommand,$F012,0);
if (y>=Panel2.Height-3)and(y<=Panel2.Width) then Panel2.Perform(WM_SysCommand,$F006,0);
end
else if (x>=Panel2.Width-3)and(x<=Panel2.Width) then
begin
if (y>=0)and(y<=3) then Panel2.Perform(WM_SysCommand,$F005,0);
if (y>3)and(y<Panel2.Height-3) then Panel2.Perform(WM_SysCommand,$F002,0);
if (y>=Panel2.Height-3)and(y<=Panel2.Width) then Panel2.Perform(WM_SysCommand,$F008,0);
end;
end;
2007-03-09 13:59



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-123298-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.133780 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved