WM_NCLBUTTONDOWNThe WM_NCLBUTTONDOWN message is posted when the user presses the left mouse button while the cursor is within the nonclient area of a window. This message is posted to the window that contains the cursor. If a window has captured the mouse, this message is not posted. WM_NCLBUTTONDOWN
nHittest = (INT) wParam; // hit-test value
pts = MAKEPOINTS(lParam); // position of cursor
ParametersnHittest Value of wParam. Specifies the hit-test value returned by the DefWindowProc function as a result of processing the WM_NCHITTEST message. For a list of hit-test values, see WM_NCHITTEST. pts Value of lParam. Specifies aPOINTS structure that contains the x- and y-coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. Return ValuesIf an application processes this message, it should return zero
nHittest = (INT) wParam; // hit-test value
pts = MAKEPOINTS(lParam); // position of cursor
ParametersnHittest Value of wParam. Specifies the hit-test value returned by the DefWindowProc function as a result of processing the WM_NCHITTEST message. For a list of hit-test values, see WM_NCHITTEST. pts Value of lParam. Specifies aPOINTS structure that contains the x- and y-coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. Return ValuesIf an application processes this message, it should return zero
解决方案 »
- VB用mschart画成一个一个点,连成折线图。
- 请问怎么实现像ACDSEE一样的图像预览,主要是右边的那个LIST应该怎么做,有没有现成的控件?
- 【问】如何写 不区分大小写包含查询 的SELECT语句?
- SQL 在局域网上的应用
- 我用adodc联结数据库,为什么测试成功而运行后出现错误,(from^),是数据库不对吗谁能告我具体联结过程谢了!.
- 请教VB 控件 高手
- 请问DirListBox可以显示隐藏文件夹吗?
- VC中函数在VB中怎么调用 (高分奉送!!)
- 如何让vb创建的窗口始终在上面?别的程序不能覆盖
- 怎么把菜单的灰色背景改成我想要的背景?(背景要求不是单一的颜色.)
- 在什么地方可以找到数据库的备份控件呀!!
- vb调用控制面板的拨号连接可以吗?
Public Const HTCAPTION = 2 就像移动窗体的title一样移动
释放mouse捕获Const WM_NCLBUTTONDOWN = &HA1
mouse左键在窗体的非客户区按下Const HTCAPTION = 2
移动窗体的Title就是以鼠标拖曳无标题窗体