{"id":161,"date":"2007-01-09T02:31:45","date_gmt":"2007-01-09T00:31:45","guid":{"rendered":"https:\/\/alax.info\/blog\/161"},"modified":"2007-01-09T02:33:11","modified_gmt":"2007-01-09T00:33:11","slug":"how-to-create-cursors-on-runtime-in-atl-and-wtl","status":"publish","type":"post","link":"https:\/\/alax.info\/blog\/161","title":{"rendered":"How to create cursors on runtime in ATL and WTL"},"content":{"rendered":"<p>This sample projects shows how to create a cursor on runtime using <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/ms648062.aspx\">CreateIconIndirect<\/a> 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.<\/p>\n<p>Keywords: <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/ms648379.aspx\">HCURSOR<\/a>, <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/ms648070.aspx\">GetIconInfo<\/a>,  <a href=\"http:\/\/msdn2.microsoft.com\/en-us\/ms648062.aspx\">CreateIconIndirect<\/a>.<\/p>\n<p>Visual C++.NET 2005 source code can be downloaded <a id=\"p113\" href=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2007\/01\/customcursor.zip\">here<\/a>, compiled binary &#8211; <a id=\"p114\" href=\"https:\/\/alax.info\/blog\/wp-content\/uploads\/2007\/01\/customcursorexe.zip\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&hellip; <\/p>\n<p><a class=\"moretag\" href=\"https:\/\/alax.info\/blog\/161\">Read the full article<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,13,20],"tags":[],"class_list":["post-161","post","type-post","status-publish","format-standard","hentry","category-atl","category-source","category-wtl"],"_links":{"self":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/161","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/comments?post=161"}],"version-history":[{"count":0,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/posts\/161\/revisions"}],"wp:attachment":[{"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/media?parent=161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/categories?post=161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alax.info\/blog\/wp-json\/wp\/v2\/tags?post=161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}