![]() The following example uses the CreateCursor function to create a custom cursor at run time. Rather than create the cursors at run time, use the LoadCursor, LoadCursorFromFile, or LoadImage function to avoid device dependence, to simplify localization, and to enable applications to share cursor designs. ![]() You should implement custom cursors as resources. HCurs2 = LoadCursor(hinst, MAKEINTRESOURCE(240)) ![]() Create a custom cursor based on a resource. HINSTANCE hinst // handle to current instance The following example creates two cursor handles: one for the standard hourglass cursor and one for a custom cursor included as a resource in the application's resource-definition file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |