Hi candivan,
感谢在MSDN论坛发帖。
>>通过重写 virtual int GetCaptionHeight() const{ return 0 } 可以在停靠的时候隐藏标题栏 但是浮动时候标题栏又出现了,要怎么样才能实现在浮动的时候去掉标题栏
你可以在使用CDockablePane::Create创建CDockAblePane的时候将bHasGripper参数设为false。这样创建出来的CDockAblePane就没有标题栏。
希望对你有所帮助。
Best Regards,
Sera Yu
MSDN Community Support<br/> Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this
thread. If you have any compliments or complaints to MSDN Support, feel free to contact <a href="mailto:MSDNFSF@microsoft.com">MSDNFSF@microsoft.com</a>.