在OnInitDialog中添加如下代码: //去除标题栏 SetWindowLong(GWL_STYLE, \ GetWindowLong(GWL_STYLE)&(~(WS_CAPTION | WS_BORDER)));