国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

控件在運行狀態改變大小

2019-11-18 17:58:14
字體:
來源:轉載
供稿:網友

我的主頁: http://www.tommstudio.com/

使用下面的方法可以讓控件在運行狀態改變大小,就像在窗體編輯器中一樣.


type
tddhsizebutton=class(tbutton)
public
PRocedure WmNcHitTest(var msg:TWmNcHitTest);
message wm_NcHitTest;
end;  

procedure TDdhSizeButton.WmNcHitTest(var msg:TWmNcHitTest);
var
pt:tpoint;
begin
  pt:=point(msg.xpos,msg.ypos);
  pt:=ScreentoClient(pt);
  if (pt.x<5) and (pt.y<5) then
  msg.Result:=httopright
  else if (pt.x>width-5) and (pt.y<5) then
  msg.Result:=httopright
  else if (pt.x >width-5) and (pt.y>height-5) then
  msg.Result:=htbottomright
  else if (pt.x<5) and (pt.y>height-5) then
  msg.Result:=htbottomleft
  else if (pt.x<5) then
  msg.Result:=htleft
  else if (pt.y<5) then
  msg.Result:=httop
  else if (pt.x>width-5) then
  msg.Result:=htright
  else if (pt.y>height-5) then
  msg.Result:=htbottom
  else
  inherited;
end;



上一篇:如何取得某些特殊文件夾路徑

下一篇:XP/2003下開放3389最簡單的方法

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
學習交流
熱門圖片

新聞熱點

疑難解答

圖片精選

網友關注

主站蜘蛛池模板: 名山县| 新建县| 元谋县| 凌海市| 大新县| 焉耆| 沙河市| 尤溪县| 定襄县| 花莲市| 玛曲县| 缙云县| 舞阳县| 长丰县| 宁安市| 麻城市| 永靖县| 泸西县| 南和县| 嘉黎县| 靖西县| 柳江县| 鹤山市| 长沙县| 贵港市| 通州市| 西贡区| 固原市| 慈利县| 万源市| 苏尼特左旗| 大丰市| 澳门| 永州市| 合川市| 黑水县| 万载县| 荥阳市| 获嘉县| 武安市| 上蔡县|