Commonly Used AFX Functions
Function Name |
Description |
AfxAbort |
Unconditionally terminates an application; usually called when an unrecoverable error occurs |
AfxBeginThread |
Creates a new thread and begins executing it |
AfxEndThread |
Terminates the thread that is currently executing |
AfxMessageBox |
Displays a Windows message box |
AfxGetApp |
Returns a pointer to the application object |
AfxGetAppName |
Returns the name of the application |
AfxGetMainWnd |
Returns a pointer to the application's main window |
AfxGetInstanceHandle |
Returns a handle identifying the current application instance |
AfxRegisterWndClass |
Registers a custom WNDCLASS for an MFC application |