1. Lines 9-10 winnie.CPP
int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, char * cmdParam, int cmdShow)Could you explane these arguments to me?
2. Lines 35 and 49 winnie.CPP
WinClass::WinClass
WinMaker::WinMakerWhy do we use " :: "? And also what is WinClass and WinMaker before the " :: " and what is it after that?
3. Line 68 winnie.CPP
LRESULT CALLBACK WindowProcedure (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)What is LRESULT?
4. Lines 68-81 winnie.CPP
LRESULT CALLBACK WindowProcedure
(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch (message)
{
// In this simple program, this is the only message we are processing
case WM_DESTROY:
::PostQuitMessage (0);
return 0; // return zero when processed
}
// All the unprocessed messages go there, to be dealt in some default way
return ::DefWindowProc (hwnd, message, wParam, lParam );
} What exactly hapens when the WM_DESTROY is processed? What does exactly ":: PostQuitMessage (0);" do?Thanks!!! :)


Sign In
Create Account


Back to top









