对话框客户区实现拖动

2016-09 睿丰德信息科技有限公司
睿丰德科技 专注RFID识别技术和条码识别技术与管理软件的集成项目。质量追溯系统、MES系统、金蝶与条码系统对接、用友与条码系统对接 参考文章:http://tech.sina.com.cn/s/2006-07-25/09051053460.shtml


响应WM_NCHITTEST消息


函数实现如下:


//////////////////
// Non-client hit-test handler to move window by its client area.
// If the user clicks anywhere on the client area, pretend it's the
// caption. Windows does the rest!
UINT CMyDialog::OnNcHitTest(CPoint pt)
{
 CRect rc;
 GetClientRect(&rc);
 ClientToScreen(&rc);
 return rc.PtInRect(pt) ? HTCAPTION : CDialog::OnNcHitTest(pt);
} RFID管理系统集成商 RFID中间件 条码系统中间层 物联网软件集成

给我们留言

电话咨询
邮件咨询
在线地图
微信15622149977