开发者

How to increase thickness of slider conrol in mfc?

How can I increase the thickness of a CSliderCtrl (slide开发者_开发问答r control) in MFC?


MoveWindow() can be used for any MFC control. Try this:

CRect rc;
slider.GetWindowRect(rc);    // Get the slider rectangle in absolute corrdinates
rc.InflateRect(30, 30);      // Do whatever you want with your rectangle;
ScreenToClient (rc);         // Convert to dialogs's coordinates
slider.MoveWindow(rc);       // Move it!

Update: For further customization you have to make an owner-drawn CListCtrl. You may take this article as a good start for that

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜