Well, the way I do it....
I use EnumResourceTypes(), then in my callback for that I call EnumResources(), both exactly as directed in the Microsoft documentation.
Of course, I want ALL the resources, not just the bitmaps. Works great.
So maybe if you show us what you've tried so far, someone can help you out with whatever part of that is not yet working correctly.
It's really not that difficult.. assuming you actually TRY. Ask anybody who has and they will tell you the same thing.
MCM
Announcement
Collapse
No announcement yet.
Howto get bitmap/image name from dialog control?
Collapse
X
-
Thanks, Michael,
I have almost guessed.
How to use the EnumResources() Windows' API function? example?
Many thanks
Leave a comment:
-
You can't get the internal name if all you have is the screen image. All images within applications are referenced by handle when used.... meaning it's kind of like a variable in your BASIC code as the 'name' has meaning only at compile-time.
For that matter, an image on the screen may not even have been created from a program resource... it might have been 'hand-drawn' within the application.
You can LIST all the bitmap resources of an executable file using the EnumResources() Windows' API function and get the internal IDs thereof.
Pray what are you trying to accomplish? Maybe there is another / a better way to approach the problem.
MCM
Leave a comment:
-
Howto get bitmap/image name from dialog control?
Hello,
my question:
- how to get bitmap/image name (as in a PBR-resource) from dialog-control?
ThanksTags: None
Leave a comment: