开发者

Dock a control in native C++

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜