I will suggest you to read Forger's tutorial first http://www.winprog.org/tutorial. Its awesome. Then go for charles petzold's classic book on...
A more appropriate example will be. case WM_PAINT: { hdc = BeginPaint(hWnd, &ps); wchar_t* msg[3] = { L"vidhya", L"satindar",L"vinoth", };...
sending WM_CLOSE window message won't terminate application. It will jst close the window. You can use TerminateProcess which will unconditionally...
Separate names with a comma.