문제

Now, I have an icon (Path : Mini-Project\Mni_Project\Mni_Project\Icon\mouse_cursor.ico).

enter image description here

I want to change the mouse cursor image to this icon.

There is no way for me to change the cursor image in the property window. enter image description here

I have tried : (Do not work.)

//this->Cursor = System::Windows::Forms::Cursors::Hand;
this->Cursor = LoadImage(NULL, "Icon\\mouse_cursor.ico", IMAGE_ICON, 0, 0, LR_DEFAULTSIZE);

How can I change the mouse cursor icon?

Thank you for your attention.

올바른 솔루션이 없습니다

다른 팁

Try this code

this->Cursor = gcnew System::Windows::Forms::Cursor("Icon\\mouse_cursor.ico");
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top