Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 2
    The documentation covers this. See Button Control Overviews. Commented Dec 6, 2023 at 18:07
  • 1
    There is a C++ answer here if that points you the right way. Commented Dec 6, 2023 at 18:07
  • Could you please check Remy Lebeau‘s answer? You could try to use LoadImage to load an icon or bitmap.You couldn't load .png via LoadImage directly. And then use BM_SETIMAGE message to associate a new image (icon or bitmap) with the button. Commented Dec 18, 2023 at 1:36