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 |
|
|
/** System Management (System) */ |
18 |
|
|
/** */ |
19 |
|
|
/**************************************************************************/ |
20 |
|
|
|
21 |
|
|
#define GX_SOURCE_CODE |
22 |
|
|
|
23 |
|
|
|
24 |
|
|
/* Include necessary system files. */ |
25 |
|
|
|
26 |
|
|
#include "gx_api.h" |
27 |
|
|
#include "gx_system.h" |
28 |
|
|
|
29 |
|
|
/* Bring in externs for caller checking code. */ |
30 |
|
|
GX_CALLER_CHECKING_EXTERNS |
31 |
|
|
|
32 |
|
|
/**************************************************************************/ |
33 |
|
|
/* */ |
34 |
|
|
/* FUNCTION RELEASE */ |
35 |
|
|
/* */ |
36 |
|
|
/* _gxe_system_scroll_appearance_set PORTABLE C */ |
37 |
|
|
/* 6.1 */ |
38 |
|
|
/* AUTHOR */ |
39 |
|
|
/* */ |
40 |
|
|
/* Kenneth Maxwell, Microsoft Corporation */ |
41 |
|
|
/* */ |
42 |
|
|
/* DESCRIPTION */ |
43 |
|
|
/* */ |
44 |
|
|
/* This function checks for errors in system scroll appearance set */ |
45 |
|
|
/* call. */ |
46 |
|
|
/* */ |
47 |
|
|
/* INPUT */ |
48 |
|
|
/* */ |
49 |
|
|
/* style Scrollbar style */ |
50 |
|
|
/* GX_SCROLLBAR_HORIZONTAL or */ |
51 |
|
|
/* GX_SCROLLBAR_VERTICAL */ |
52 |
|
|
/* appearance Pointer to appearance */ |
53 |
|
|
/* structure initialized with */ |
54 |
|
|
/* various scrollbar */ |
55 |
|
|
/* appearance attributes. */ |
56 |
|
|
/* */ |
57 |
|
|
/* OUTPUT */ |
58 |
|
|
/* */ |
59 |
|
|
/* status Completion status */ |
60 |
|
|
/* */ |
61 |
|
|
/* CALLS */ |
62 |
|
|
/* */ |
63 |
|
|
/* _gx_system_scroll_appearance_set Actual system scroll */ |
64 |
|
|
/* appearance call. */ |
65 |
|
|
/* */ |
66 |
|
|
/* CALLED BY */ |
67 |
|
|
/* */ |
68 |
|
|
/* Application Code */ |
69 |
|
|
/* */ |
70 |
|
|
/* RELEASE HISTORY */ |
71 |
|
|
/* */ |
72 |
|
|
/* DATE NAME DESCRIPTION */ |
73 |
|
|
/* */ |
74 |
|
|
/* 05-19-2020 Kenneth Maxwell Initial Version 6.0 */ |
75 |
|
|
/* 09-30-2020 Kenneth Maxwell Modified comment(s), */ |
76 |
|
|
/* resulting in version 6.1 */ |
77 |
|
|
/* */ |
78 |
|
|
/**************************************************************************/ |
79 |
|
1420 |
UINT _gxe_system_scroll_appearance_set(ULONG style, GX_SCROLLBAR_APPEARANCE *appearance) |
80 |
|
|
{ |
81 |
|
|
UINT status; |
82 |
|
|
|
83 |
|
|
/* Check for invalid caller. */ |
84 |
✓✓✓✓ ✓✓ |
1420 |
GX_INIT_AND_THREADS_CALLER_CHECKING |
85 |
|
|
|
86 |
|
|
/* Check for invalid pointer. */ |
87 |
✓✓ |
1418 |
if (appearance == GX_NULL) |
88 |
|
|
{ |
89 |
|
2 |
return(GX_PTR_ERROR); |
90 |
|
|
} |
91 |
|
|
|
92 |
|
|
|
93 |
|
|
/* Call actual system scroll appearance get. */ |
94 |
|
1416 |
status = _gx_system_scroll_appearance_set(style, appearance); |
95 |
|
|
|
96 |
|
|
/* Return status. */ |
97 |
|
1416 |
return(status); |
98 |
|
|
} |
99 |
|
|
|