AfxSetAppName( )?
-
I have an SDI application. The title bar text is: FileName - AppName My question is: how can I change AppName on the fly? I have a menu item to swtich between two options. I want the application title bar to reflect which option is currently selected. So I want the title bar text to be something as: FileName - AppName option1 or FileName - AppName option2 I searched MSDN, and found there is a function AfxGetAppName( ), but it is to get CWinApp.m_pszAppName. Is there a function to set the m_pszAppName? Thank you very much for any hint.
-
I have an SDI application. The title bar text is: FileName - AppName My question is: how can I change AppName on the fly? I have a menu item to swtich between two options. I want the application title bar to reflect which option is currently selected. So I want the title bar text to be something as: FileName - AppName option1 or FileName - AppName option2 I searched MSDN, and found there is a function AfxGetAppName( ), but it is to get CWinApp.m_pszAppName. Is there a function to set the m_pszAppName? Thank you very much for any hint.
-
I have an SDI application. The title bar text is: FileName - AppName My question is: how can I change AppName on the fly? I have a menu item to swtich between two options. I want the application title bar to reflect which option is currently selected. So I want the title bar text to be something as: FileName - AppName option1 or FileName - AppName option2 I searched MSDN, and found there is a function AfxGetAppName( ), but it is to get CWinApp.m_pszAppName. Is there a function to set the m_pszAppName? Thank you very much for any hint.
AfxGetModuleState()->m_lpszCurrentAppName = L"title"