diff --git a/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md b/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md index a3b89d0b50..74ea1753e5 100644 --- a/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md +++ b/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md @@ -214,7 +214,7 @@ Next, learn how to create the code for a Windows desktop application in Visual S // szTitle: the text that appears in the title bar // WS_OVERLAPPEDWINDOW: the type of window to create // CW_USEDEFAULT, CW_USEDEFAULT: initial position (x, y) - // 500, 100: initial size (width, length) + // 500, 100: initial size (width, height) // NULL: the parent of this window // NULL: this application does not have a menu bar // hInstance: the first parameter from WinMain @@ -248,7 +248,7 @@ Next, learn how to create the code for a Windows desktop application in Visual S ```cpp // The parameters to ShowWindow explained: - // hWnd: the value returned from CreateWindow + // hWnd: the value returned from CreateWindowEx // nCmdShow: the fourth parameter from WinMain ShowWindow(hWnd, nCmdShow); @@ -314,9 +314,9 @@ Next, learn how to create the code for a Windows desktop application in Visual S // szTitle: the text that appears in the title bar // WS_OVERLAPPEDWINDOW: the type of window to create // CW_USEDEFAULT, CW_USEDEFAULT: initial position (x, y) - // 500, 100: initial size (width, length) + // 500, 100: initial size (width, height) // NULL: the parent of this window - // NULL: this application dows not have a menu bar + // NULL: this application does not have a menu bar // hInstance: the first parameter from WinMain // NULL: not used in this application HWND hWnd = CreateWindowEx( @@ -335,7 +335,7 @@ Next, learn how to create the code for a Windows desktop application in Visual S if (!hWnd) { MessageBox(NULL, - _T("Call to CreateWindow failed!"), + _T("Call to CreateWindowEx failed!"), _T("Windows Desktop Guided Tour"), NULL); @@ -343,7 +343,7 @@ Next, learn how to create the code for a Windows desktop application in Visual S } // The parameters to ShowWindow explained: - // hWnd: the value returned from CreateWindow + // hWnd: the value returned from CreateWindowEx // nCmdShow: the fourth parameter from WinMain ShowWindow(hWnd, nCmdShow); UpdateWindow(hWnd); @@ -501,7 +501,7 @@ As promised, the complete code for the working application follows. // szTitle: the text that appears in the title bar // WS_OVERLAPPEDWINDOW: the type of window to create // CW_USEDEFAULT, CW_USEDEFAULT: initial position (x, y) - // 500, 100: initial size (width, length) + // 500, 100: initial size (width, height) // NULL: the parent of this window // NULL: this application does not have a menu bar // hInstance: the first parameter from WinMain @@ -522,7 +522,7 @@ As promised, the complete code for the working application follows. if (!hWnd) { MessageBox(NULL, - _T("Call to CreateWindow failed!"), + _T("Call to CreateWindowEx failed!"), _T("Windows Desktop Guided Tour"), NULL); @@ -530,7 +530,7 @@ As promised, the complete code for the working application follows. } // The parameters to ShowWindow explained: - // hWnd: the value returned from CreateWindow + // hWnd: the value returned from CreateWindowEx // nCmdShow: the fourth parameter from WinMain ShowWindow(hWnd, nCmdShow);