摘要:
主要通过处理WM_LBUTTONDOWN 消息, 将此消息转发出WM_NCLBUTTONDOWN 消息并将参数WPARAM设置为HTCAPTION1. 處理WM_LBUTTONDOWD 消息 發送消息: SendMessage(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, 0); 或 SendMessage(hWnd, WM_SYSCOMMAND, 0XF012, 0); 代碼: a. 處理 WM_NCBUTTONDOWN 消息LRESULTWndProc(HWNDhWnd,UINTnMsg,WPARAMwParam,LPARAMlParam){switch(nMs.. 阅读全文