MFC 修改标题

1.

Overwrite CMainFrame::PreCreateWindow. Clear the style FWS_ADDTOTITLE

cs.style &= ~(LONG)FWS_ADDTOTITLE;          

Now it should be possible the window caption in any way you like.

2.在CMainFrame::OnCreate(....)函数末尾添加:

SetWindowText("你的标题");

posted on 2018-10-30 17:35  销售人生  阅读(585)  评论(0)    收藏  举报