From 8aa537d4ef46f770522a000d70dece349827ab63 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Thu, 24 Jul 2025 20:37:31 +0800 Subject: [PATCH 1/3] Fix "does" typo in "Walkthrough: Create a traditional Windows desktop application (C++)" --- .../walkthrough-creating-windows-desktop-applications-cpp.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md b/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md index a3b89d0b50..dc72ec5a19 100644 --- a/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md +++ b/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md @@ -316,7 +316,7 @@ Next, learn how to create the code for a Windows desktop application in Visual S // CW_USEDEFAULT, CW_USEDEFAULT: initial position (x, y) // 500, 100: initial size (width, length) // 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( From b8da9425c35142cedad15b2fc42a251e797502f6 Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Thu, 24 Jul 2025 20:40:07 +0800 Subject: [PATCH 2/3] Replace "length" with "height" in "Walkthrough: Create a traditional Windows desktop application (C++)" --- ...walkthrough-creating-windows-desktop-applications-cpp.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md b/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md index dc72ec5a19..0eb8348bc3 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 @@ -314,7 +314,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 @@ -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 From 5b1d1d97142c142d1423259ee938e5b8736dd48e Mon Sep 17 00:00:00 2001 From: Rageking8 <106309953+Rageking8@users.noreply.github.com> Date: Thu, 24 Jul 2025 20:46:24 +0800 Subject: [PATCH 3/3] Fix outdated mentions of `CreateWindow` in "Walkthrough: Create a traditional Windows desktop application (C++)" --- ...hrough-creating-windows-desktop-applications-cpp.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md b/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md index 0eb8348bc3..74ea1753e5 100644 --- a/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md +++ b/docs/windows/walkthrough-creating-windows-desktop-applications-cpp.md @@ -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); @@ -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); @@ -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);