VC++: You must know that:
You must know that:
m_pMainWnd is a public data member of CWinApp class which contains address of frame
window.
Function AfxGetApp( ) returns address of application object. So AfxGetApp( ) can be used
to call member functions of CWinApp class.
AfxGetMainWnd( ) function returns the address stored in m_pMainWnd i.e. address of
frame window.
Returning 0 from InitInstance( ) function will close down the application.
WS_VISIBLE style can be used in Create( ) function instead of calling ShowWindow( )
function.
MAKEINTRESOURCE is a macro declared in 'windows.h' file. It converts an integer to string.
Functions preceded by 'Afx' prefix are global function which can be called anywhere.
If changes are made in resources then during compilation only the resources get compiled and not the whole program.
Selecting 'Use MFC in static DLL' from Project | Settings will create a stand alone exe.




Comments
Log in or create a user account to comment.