简体   繁体   English

C ++使用自定义光标GDI

[英]c++ use custom cursor gdi

ok im trying to create cursor using gdi. 好的即时通讯尝试使用gdi创建游标。 i can't even find tutorial how to use customize cursor, i can find so many tutorials for c#. 我什至找不到教程如何使用自定义光标,我可以找到很多有关C#的教程。 all i know that i use these two functions to set cursor,setcursor and loadcursor that is it thanks Rami 我所知道的是,我使用这两个函数来设置游标,setcursor和loadcursor,这是由于Rami

You can create your own cursor using CreateCursor() . 您可以使用CreateCursor()创建自己的光标。 The last two parameters defined the actual pixel data. 最后两个参数定义了实际的像素数据。 This gives you a HCURSOR handle. 这为您提供了HCURSOR句柄。

Once created, you can use it with SetCursor(HCURSOR handle) . 创建后,可以将其与SetCursor(HCURSOR handle)一起使用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM