| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 484 人关注过本帖
标题:可以幫忙我分析一下程序的嗎?謝謝啦
只看楼主 加入收藏
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
快速回复:可以幫忙我分析一下程序的嗎?謝謝啦
数据加载中...
 
   



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

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