How to change the default cursor shape?

xiaoxiao2021-03-05  23

I tried to change the cursor to other shapes and colors, but did not change.

A: In the dialog box / window / you need to add the processing of the WM_SETCURSOR message.

Bool MyDialog :: OnsetCursor (CWND * PWND, UINT NHITTEST, UINT MESSAGE)

{

// Todo: add your message handler code here and / or call default

:: setCursor (AFXGetApp () -> loadcursor (idc_mycursor);

Return True;

// Return CDIALOG :: OnsetCursor (PWND, NHitTest, Message);

}

You have no success because the window cursor style cannot be NULL.

转载请注明原文地址:https://www.9cbs.com/read-35975.html

New Post(0)