急求高手,小弟我下了个CButtonST来做带图片的按钮,但是为什么图片放上去都会有LEFT和TOP的偏移
急求高手,我下了个CButtonST来做带图片的按钮,但是为什么图片放上去都会有LEFT和TOP的偏移?
如果CButtonST代码的问题,请问在哪里改?
另,图片70*64大小,BMP格式转成ICON的
------解决方案--------------------
CButtonST性能很好
我不是很明白你所说的偏移得意思
------解决方案--------------------
用按钮的SetAlign(int)方法
enum{
ST_ALIGN_HORIZ = 0,// Icon/bitmap on the left, text on the right
ST_ALIGN_VERT, // Icon/bitmap on the top, text on the bottom
ST_ALIGN_HORIZ_RIGHT, // Icon/bitmap on the right, text on the left
ST_ALIGN_OVERLAP // Icon/bitmap on the same space as text
};
如果CButtonST代码的问题,请问在哪里改?
另,图片70*64大小,BMP格式转成ICON的
------解决方案--------------------
CButtonST性能很好
我不是很明白你所说的偏移得意思
------解决方案--------------------
用按钮的SetAlign(int)方法
enum{
ST_ALIGN_HORIZ = 0,// Icon/bitmap on the left, text on the right
ST_ALIGN_VERT, // Icon/bitmap on the top, text on the bottom
ST_ALIGN_HORIZ_RIGHT, // Icon/bitmap on the right, text on the left
ST_ALIGN_OVERLAP // Icon/bitmap on the same space as text
};