Dynamically change the application name

xiaoxiao2021-03-06  57

After changing the app name,

AfxMessageBox

Title will change

AFXGetApp () -> m_pszappname;

Refer to MSDN, modification

The content of m_pszappname needs to be released first, and then allocate to his new memory.

Free ((void *) m_pszappname);

m_pszappname = _tcsdup (_t ("new name"));

转载请注明原文地址:https://www.9cbs.com/read-113786.html

New Post(0)