1. A CFormView-based MFC program is created by default, and the view area is obviously different from the border of the form.
Solution:
Add the following code to OnInitialUpdate:
ModifyStyleEx (WS_EX_CLIENTEDGE, 0, SWP_FRAMECHANGED );
For example:
Void metadata: OnInitialUpdate () {CFormView: OnInitialUpdate (); ModifyStyleEx (latency, 0, SWP_FRAMECHANGED); GetParentFrame ()-> RecalcLayout (); ResizeParentToFit ();}
2. Modify the interface title
Add the following code to InitInstance:
Note: SetWindowText must be used after the document is created by ProcessShellCommand; otherwise, an error occurs. You can directly add the code for setting the window title to the end of the InitInstance.
BOOL CFurtherConvertCutCodeApp: InitInstance () {// schedule the command specified in the command line. If // starts the application with/RegServer,/Register,/Unregserver, or/Unregister, FALSE is returned. If (! ProcessShellCommand (cmdInfo) return FALSE; m_pMainWnd-> SetWindowTextW (_ T ("window title "));}