Home > Software engineering >  MFC toolbar to change the background of a single button
MFC toolbar to change the background of a single button

Time:09-23

As title, I want to have each button with different background while retaining the original icon, inherited the toolbar writing the extension class I can only in the onpaint on each button to draw a different background, but the picture is not on the original icon,

CodePudding user response:

http://www.codeforge.cn/article/6525

CodePudding user response:

With q, the other links in the download need integral codes, I temporarily have no, can you send me a copy? (reference)

CodePudding user response:

refer to the second floor cwj976277916 response:
q, the other links in the download need integral codes, I temporarily have no, can you send me a copy? (reference)

You to like me, I added a mask of drawing the each button background color

CodePudding user response:

reference 4 floor qq_26868981 response:
Quote: refer to the second floor cwj976277916 response:

With q, the other links in the download need integral codes, I temporarily have no, can you send me a copy? (reference)

You to like me, I added a mask of drawing the each button background color

I set button to freestanding, but normal load images,

CodePudding user response:

https://blog.csdn.net/fjclc2008/article/details/7531972

CodePudding user response:

Using graphic, click and click switch different background
  • Related