I am trying to create a static icon control (SS_ICON). MSDN tells me that I need to supply the resource name of the icon as the "text" argument for CreateWindow; however I only have an integer identifier of the resource. How can I obtain the "name" of a resource given that I have its identifier? I've tried MAKEINTRESOURCE, but this returns something other than "the name" (and needless to say, causes crashing).
I could change my resource file and give the icon a "name" ID instead of a numeric ID, or I could send a STM_SETICON message after creation to make it work, but I'm thinking there must be a better way... a way to convert from integer ID to name ID and vice verca.



LinkBack URL
About LinkBacks



