How to create cursors on runtime in ATL and WTL

This sample projects shows how to create a cursor on runtime using CreateIconIndirect API as well as compose a new cursor out of the two cursor images, base and overlay image. A new cursor is composed out of system IDC_ARROW cursor and an application cursor resource.

Keywords: HCURSOR, GetIconInfo, CreateIconIndirect.

Visual C++.NET 2005 source code can be downloaded here, compiled binary – here.

Leave a Reply