InterviewSolution
| 1. |
What Is The Use Of Cwinapp Class? |
|
Answer» CWINAPP is an application object provides member FUNCTIONS for initializing your application (and each instance of it) and for running the application. Each application that uses the Microsoft Foundation classes can only contain ONE object derived from CWinApp. This object is constructed when other C++ global objects are constructed and is ALREADY available when Windows calls the WinMain function, which is supplied by the Microsoft Foundation Class Library. Declare your derived CWinApp object at the global level. When you derive an application class from CWinApp, override the InitInstance member function to create your application's main window object. In addition to the CWinApp member functions, the Microsoft Foundation Class Library provides the following global functions to access your CWinApp object and other global INFORMATION:
CWinApp is an application object provides member functions for initializing your application (and each instance of it) and for running the application. Each application that uses the Microsoft Foundation classes can only contain one object derived from CWinApp. This object is constructed when other C++ global objects are constructed and is already available when Windows calls the WinMain function, which is supplied by the Microsoft Foundation Class Library. Declare your derived CWinApp object at the global level. When you derive an application class from CWinApp, override the InitInstance member function to create your application's main window object. In addition to the CWinApp member functions, the Microsoft Foundation Class Library provides the following global functions to access your CWinApp object and other global information: |
|