开发者

How to increase thickness of slider conrol in mfc?

开发者 https://www.devze.com 2023-01-16 22:38 出处:网络
How can I increase the thickness of a CSliderCtrl (slide开发者_开发问答r control) in MFC?MoveWindow() can be used for any MFC control. Try this:

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

精彩评论

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