Say you have a WS_OVERLAPPEDWINDOW window, and you show it for the first time:
WS_OVERLAPPEDWINDOW
::ShowWindow(hwnd, SW_SHOW);
The window appears w