开发者

Dock a control in native C++

开发者 https://www.devze.com 2022-12-19 04:01 出处:网络
I know how to do this in .Net but in native Win32, how does one dock a control. I\'m trying to dock a trackbar I made like vlc\'s tra开发者_如何学编程ckbar.

I know how to do this in .Net but in native Win32, how does one dock a control. I'm trying to dock a trackbar I made like vlc's tra开发者_如何学编程ckbar.

Thanks

dock it to the bottom of its parent window


You write the code to do it, or use a library which provides that functionality. If you are intent on using raw Win32, handle the WM_SIZE message for the container, calculate where the trackbar should be, and put it there. Roughly (0,height-trackbar_height,width,trackbar_height).

Apparently, Pearl Jam are still touring.

0

精彩评论

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