这次和大家分享在自己窗口内改变鼠标指针图标的方法。关键在于处理WM_SETCURSOR消息,先看一下这个消息的定义:
WM_SETCURSOR Notification
The WM_SETCURSOR message is sent to a window if the mouse causes the cursor to move within a window and mouse input is not captured.
Syntax
WM_SETCURSOR WPARAM wParam LPARAM lParam;
Parameters
wParam
- Handle to the window that contains the cursor.
lParam- The low-order word of lParam specifies the hit-test code.
The high-order word of lParam specifies the identifier of the mouse message.
Return Value
If an application processes this message, it should return TRUE to halt further processing or FALSE to continue.
<