From 43c525b79f3a74da9448850573a2ee2c03f4762f Mon Sep 17 00:00:00 2001 From: Nikita Leontiev Date: Wed, 15 Oct 2025 04:36:02 +0300 Subject: [PATCH] Return values corrected to match the SDK --- .../content/windowsx/nf-windowsx-button_getcheck.md | 4 ++-- .../content/windowsx/nf-windowsx-button_getstate.md | 4 ++-- .../content/windowsx/nf-windowsx-button_setcheck.md | 8 +------- .../content/windowsx/nf-windowsx-button_setstate.md | 4 ++-- .../content/windowsx/nf-windowsx-button_setstyle.md | 8 +------- 5 files changed, 8 insertions(+), 20 deletions(-) diff --git a/sdk-api-src/content/windowsx/nf-windowsx-button_getcheck.md b/sdk-api-src/content/windowsx/nf-windowsx-button_getcheck.md index 1f944029756a..04961cad9017 100644 --- a/sdk-api-src/content/windowsx/nf-windowsx-button_getcheck.md +++ b/sdk-api-src/content/windowsx/nf-windowsx-button_getcheck.md @@ -50,14 +50,14 @@ api_name: ## -syntax ```cpp -LRESULT Button_GetCheck( +int Button_GetCheck(  HWND hwndCtl ); ``` ## -returns -Type: **[LRESULT](/windows/desktop/winprog/windows-data-types)** +Type: **int** The return value from a button created with the BS_AUTOCHECKBOX, BS_AUTORADIOBUTTON, BS_AUTO3STATE, BS_CHECKBOX, BS_RADIOBUTTON, or BS_3STATE style can be one of the following: diff --git a/sdk-api-src/content/windowsx/nf-windowsx-button_getstate.md b/sdk-api-src/content/windowsx/nf-windowsx-button_getstate.md index 00f0c5fddb9b..8d51a3f0d3c5 100644 --- a/sdk-api-src/content/windowsx/nf-windowsx-button_getstate.md +++ b/sdk-api-src/content/windowsx/nf-windowsx-button_getstate.md @@ -50,14 +50,14 @@ api_name: ## -syntax ```cpp -LRESULT Button_GetState( +int Button_GetState(  HWND hwndCtl ); ``` ## -returns -Type: **[LRESULT](/windows/desktop/winprog/windows-data-types)** +Type: **int** The return value specifies the current state of the button. It is a combination of the following values: diff --git a/sdk-api-src/content/windowsx/nf-windowsx-button_setcheck.md b/sdk-api-src/content/windowsx/nf-windowsx-button_setcheck.md index cd2abb93952d..140b0035e638 100644 --- a/sdk-api-src/content/windowsx/nf-windowsx-button_setcheck.md +++ b/sdk-api-src/content/windowsx/nf-windowsx-button_setcheck.md @@ -50,18 +50,12 @@ api_name: ## -syntax ```cpp -LRESULT Button_SetCheck( +void Button_SetCheck(  HWND hwndCtl,  int  check ); ``` -## -returns - -Type: **[LRESULT](/windows/desktop/winprog/windows-data-types)** - -The return value is always zero. - ## -description diff --git a/sdk-api-src/content/windowsx/nf-windowsx-button_setstate.md b/sdk-api-src/content/windowsx/nf-windowsx-button_setstate.md index a234415599c6..95aa35917f5e 100644 --- a/sdk-api-src/content/windowsx/nf-windowsx-button_setstate.md +++ b/sdk-api-src/content/windowsx/nf-windowsx-button_setstate.md @@ -50,7 +50,7 @@ api_name: ## -syntax ```cpp -LRESULT Button_SetState( +UINT Button_SetState(  HWND hwndCtl,  BOOL state ); @@ -58,7 +58,7 @@ LRESULT Button_SetState( ## -returns -Type: **[LRESULT](/windows/desktop/winprog/windows-data-types)** +Type: **[UINT](/windows/desktop/winprog/windows-data-types)** The return value is always zero. diff --git a/sdk-api-src/content/windowsx/nf-windowsx-button_setstyle.md b/sdk-api-src/content/windowsx/nf-windowsx-button_setstyle.md index a2e8f11d7adf..a16f68d991e3 100644 --- a/sdk-api-src/content/windowsx/nf-windowsx-button_setstyle.md +++ b/sdk-api-src/content/windowsx/nf-windowsx-button_setstyle.md @@ -50,19 +50,13 @@ api_name: ## -syntax ```cpp -LRESULT Button_SetStyle( +void Button_SetStyle(  HWND  hwndCtl,  DWORD style,  BOOL  fRedraw ); ``` -## -returns - -Type: **[LRESULT](/windows/desktop/winprog/windows-data-types)** - -The return value is always zero. - ## -description