1 /*************************************************************************** 2 * Copyright (c) 2024 Microsoft Corporation 3 * 4 * This program and the accompanying materials are made available under the 5 * terms of the MIT License which is available at 6 * https://opensource.org/licenses/MIT. 7 * 8 * SPDX-License-Identifier: MIT 9 **************************************************************************/ 10 11 12 /**************************************************************************/ 13 /**************************************************************************/ 14 /** */ 15 /** GUIX Component */ 16 /** */ 17 /** Horizontal List (List) */ 18 /** */ 19 /**************************************************************************/ 20 21 #define GX_SOURCE_CODE 22 23 24 /* Include necessary system files. */ 25 26 #include "gx_api.h" 27 #include "gx_window.h" 28 29 GX_CALLER_CHECKING_EXTERNS 30 31 /**************************************************************************/ 32 /* */ 33 /* FUNCTION RELEASE */ 34 /* */ 35 /* _gx_horizontal_list_total_columns_set PORTABLE C */ 36 /* 6.1 */ 37 /* AUTHOR */ 38 /* */ 39 /* Kenneth Maxwell, Microsoft Corporation */ 40 /* */ 41 /* DESCRIPTION */ 42 /* */ 43 /* This function scrolls down the vertical list. */ 44 /* */ 45 /* INPUT */ 46 /* */ 47 /* vertical_list Vertical list widget control */ 48 /* block */ 49 /* */ 50 /* OUTPUT */ 51 /* */ 52 /* None */ 53 /* */ 54 /* CALLS */ 55 /* */ 56 /* */ 57 /* CALLED BY */ 58 /* */ 59 /* GUIX Internal Code */ 60 /* */ 61 /* RELEASE HISTORY */ 62 /* */ 63 /* DATE NAME DESCRIPTION */ 64 /* */ 65 /* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ 66 /* 09-30-2020 Kenneth Maxwell Modified comment(s), */ 67 /* resulting in version 6.1 */ 68 /* */ 69 /**************************************************************************/ _gxe_horizontal_list_total_columns_set(GX_HORIZONTAL_LIST * list,INT count)70UINT _gxe_horizontal_list_total_columns_set(GX_HORIZONTAL_LIST *list, INT count) 71 { 72 UINT status; 73 74 /* Check for appropriate caller. */ 75 GX_INIT_AND_THREADS_CALLER_CHECKING 76 77 if (list == GX_NULL) 78 { 79 return GX_PTR_ERROR; 80 } 81 82 if (count < 0) 83 { 84 return GX_INVALID_VALUE; 85 } 86 87 status = _gx_horizontal_list_total_columns_set(list, count); 88 return status; 89 } 90 91