Function Name Description AfxWininit is called by WinMain (provided by MFC) as part of the MFC GUI program initialized AfxBeginThread starts a new thread AFXEndThread end an old thread AFXFORMATSTRING1 similar to Printf a string formatting AFXFORMATSTRING2 similar to Printf the string format similar AfxMessageBox window API function MessageBox AfxOutDebugString exports error string means AfxGetApp obtained application object (CwinApp derived object) AfxGetMainWnd obtain a pointer to a pointer of the main window procedure instance handle AfxRegisterClass AfxGetInstance obtained in a self-registered predetermined WNDCLASS Window class
The AFX global function is not a global function of any class.