STEP 2
Initialize an ‘Instance’ of the Application
- Write a function to do the following:
- Assign the current instance to a global variable for use by other windows and dialog boxes in the program.
- Call the CreateWindow function, passing the App Name as specified in your class, the window’s position and size, handles to parent and child windows and the handle to the current instance.
- If the window could not be created, return FALSE, otherwise call the ShowWindow function to display the window.