CSDN首页 空间 新闻 论坛 Blog 下载 读书 网摘 搜索 .NET Java 视频 接项目 求职 在线学习 买书 程序员 通知
不看会后悔的Windows XP之经验谈 简单快捷DIY实用家庭影院
CSDN社区
搜索 收藏 打印 关闭
CSDN社区 >  Delphi >  VCL组件开发及应用

?如何判断当前是否在拖动窗体的标题栏??

楼主gaochunguang(Alien~)2001-02-17 21:03:00 在 Delphi / VCL组件开发及应用 提问

问题点数:20、回复次数:4Top

1 楼rh(花覆茅檐)回复于 2001-02-17 22:08:00 得分 0

捕获   MouseDownOnCaption  
  耶!昨天和今天的这个题目的帖子都是你发的吗?Top

2 楼Lin(林)回复于 2001-02-18 12:20:00 得分 20

2   rh:  
  MouseDownOnCaption,有吗?拜托啦。应该捕获WM_NCHITTEST消息才是。具体你可以看MSDN的帮助:  
  xPos   =   LOWORD(lParam);     //   horizontal   position   of   cursor    
  yPos   =   HIWORD(lParam);     //   vertical   position   of   cursor    
   
  Parameters  
   
  xPos  
  Value   of   the   low-order   word   of   lParam.   Specifies   the   x-coordinate   of   the   cursor.   The   coordinate   is   relative   to   the   upper-left   corner   of   the   screen.    
   
  yPos  
  Value   of   the   high-order   word   of   lParam.   Specifies   the   y-coordinate   of   the   cursor.   The   coordinate   is   relative   to   the   upper-left   corner   of   the   screen.    
   
  Return   Values  
  The   return   value   of   the   DefWindowProc   function   is   one   of   the   following   values,   indicating   the   position   of   the   cursor   hot   spot  
   
  HTCAPTION 就是你想要的。  
  Top

3 楼Lin(林)回复于 2001-02-18 12:21:00 得分 0

2   rh:  
  MouseDownOnCaption,有吗?拜托啦。应该捕获WM_NCHITTEST消息才是。具体你可以看MSDN的帮助:  
  xPos   =   LOWORD(lParam);     //   horizontal   position   of   cursor    
  yPos   =   HIWORD(lParam);     //   vertical   position   of   cursor    
   
  Parameters  
   
  xPos  
  Value   of   the   low-order   word   of   lParam.   Specifies   the   x-coordinate   of   the   cursor.   The   coordinate   is   relative   to   the   upper-left   corner   of   the   screen.    
   
  yPos  
  Value   of   the   high-order   word   of   lParam.   Specifies   the   y-coordinate   of   the   cursor.   The   coordinate   is   relative   to   the   upper-left   corner   of   the   screen.    
   
  Return   Values  
  The   return   value   of   the   DefWindowProc   function   is   one   of   the   following   values,   indicating   the   position   of   the   cursor   hot   spot  
   
  HTCAPTION 就是你想要的。  
  Top

4 楼Lin(林)回复于 2001-02-18 12:26:00 得分 0

2   rh:  
  MouseDownOnCaption,有吗?拜托啦。应该捕获WM_NCHITTEST消息才是。具体你可以看MSDN的帮助:  
  xPos   =   LOWORD(lParam);     //   horizontal   position   of   cursor    
  yPos   =   HIWORD(lParam);     //   vertical   position   of   cursor    
   
  Parameters  
   
  xPos  
  Value   of   the   low-order   word   of   lParam.   Specifies   the   x-coordinate   of   the   cursor.   The   coordinate   is   relative   to   the   upper-left   corner   of   the   screen.    
   
  yPos  
  Value   of   the   high-order   word   of   lParam.   Specifies   the   y-coordinate   of   the   cursor.   The   coordinate   is   relative   to   the   upper-left   corner   of   the   screen.    
   
  Return   Values  
  The   return   value   of   the   DefWindowProc   function   is   one   of   the   following   values,   indicating   the   position   of   the   cursor   hot   spot  
   
  HTCAPTION 就是你想要的。  
  Top

相关问题

  • 非标题栏窗体拖动问题
  • 一个无标题栏的窗体的拖动问题?
  • 如何拖动没有标题栏的窗体??
  • 求救::无标题栏的窗体拖动
  • 拖动无标题栏窗体时的出现问题?在线等待
  • 求能在Win98下用鼠标拖动没标题栏窗体的程序。
  • 鼠标按住标题栏拖动窗体时产生什么消息?
  • 如何用拖动的方法改变没有标题栏窗体的大小呢?
  • 求助: 把标题栏去除,用鼠标单击客户区拖动窗体是如何实现的?
  • 请问,如何做出象窗口标题栏那样,按住鼠标,可以拖动窗体?谢谢!

关键词

  • word
  • msdn
  • coordinate
  • mousedownoncaption
  • cursor
  • lparam
  • parametersxposvalue
  • valuesthe
  • yposvalue
  • position

得分解答快速导航

  • 帖主:gaochunguang
  • Lin

相关链接

  • Delphi类图书
  • Delphi类源码下载
  • Delphi控件下载

广告也精彩

反馈

请通过下述方式给我们反馈
反馈
提问
网站简介|广告服务|VIP资费标准|银行汇款帐号|网站地图|帮助|联系方式|诚聘英才|English|问题报告
北京创新乐知广告有限公司 版权所有, 京 ICP 证 070598 号
世纪乐知(北京)网络技术有限公司 提供技术支持
Copyright © 2000-2008, CSDN.NET, All Rights Reserved
GongshangLogo