Modify the MDI Project Main frame window caption (Modify CREATESTRUCT structure body)

Source: Internet
Author: User

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

[CPP]View PlainCopy
  1. In the PreCreateWindow function of the CMainFrame class, add
  2. M_strtitle = _t ("Hello");
  3. Cs.style &= ~fws_addtotitle;
  4. You can modify the title of the main frame window. The code is as follows:
  5. BOOL CMainFrame::P Recreatewindow (createstruct& CS)
  6. {
  7. M_strtitle = _t ("Hello");
  8. Cs.style &= ~fws_addtotitle;
  9. if (! CMDIFrameWnd::P Recreatewindow (CS))
  10. return FALSE;
  11. //Todo:modify the Window class or styles here by modifying
  12. //The CREATESTRUCT CS
  13. return TRUE;
  14. }

http://blog.csdn.net/visualeleven/article/details/5968770

Modify the MDI Project Main frame window caption (Modify CREATESTRUCT structure body)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.