Home > Software engineering >  Ask for advice!!!!! BCG how to set the button to add the ICON in the middle
Ask for advice!!!!! BCG how to set the button to add the ICON in the middle

Time:09-20

BCG how to add the ICON in the middle of the button
Already tried CBCGPButton: : m_nAlignStyle bad to use,

CodePudding user response:

Why no one, the great god help bai!

CodePudding user response:

CBCGPButton m_btn;//Button variable
M_btn. SetImage (m_hIcon);//m_hIcon - icon HIcon//can be replaced with SetIcon
M_btn. SetImageAutoScale ();
M_btn. M_bTopImage=TRUE;

I am using SetImage ICONS to add
Increased the photo images can be set with m_bTopImage or m_bRighImage depend on and on the right, without words above should be centered, but loading BMP button image shows that there is something wrong with the frame, better load PNG
  • Related