https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2b8c1b0dac33e5a5067f0…
commit 2b8c1b0dac33e5a5067f0894670eba2c9e0b24be
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Fri May 12 16:02:00 2023 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Thu May 25 18:56:02 2023 +0300
[WIN32K] Fix WindowExtra for some server-side classes
These values are based on apitest results.
---
win32ss/user/ntuser/class.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/win32ss/user/ntuser/class.c b/win32ss/user/ntuser/class.c
index 9210852dca7..90746db3da2 100644
--- a/win32ss/user/ntuser/class.c
+++ b/win32ss/user/ntuser/class.c
@@ -34,7 +34,7 @@ static NTSTATUS IntDeregisterClassAtom(IN RTL_ATOM Atom);
REGISTER_SYSCLASS DefaultServerClasses[] =
{
- { ((PWSTR)((ULONG_PTR)(WORD)(0x8001))),
+ { ((PWSTR)WC_DESKTOP),
CS_GLOBALCLASS|CS_DBLCLKS,
NULL, // Use User32 procs
sizeof(ULONG)*2,
@@ -43,19 +43,19 @@ REGISTER_SYSCLASS DefaultServerClasses[] =
FNID_DESKTOP,
ICLS_DESKTOP
},
- { ((PWSTR)((ULONG_PTR)(WORD)(0x8003))),
+ { ((PWSTR)WC_SWITCH),
CS_VREDRAW|CS_HREDRAW|CS_SAVEBITS,
NULL, // Use User32 procs
- sizeof(LONG),
+ sizeof(LONG_PTR), // See user32_apitest GetClassInfo, 0: Pointer to ALTTABINFO
(HICON)OCR_NORMAL,
NULL,
FNID_SWITCH,
ICLS_SWITCH
},
- { ((PWSTR)((ULONG_PTR)(WORD)(0x8000))),
+ { ((PWSTR)WC_MENU),
CS_DBLCLKS|CS_SAVEBITS|CS_DROPSHADOW,
NULL, // Use User32 procs
- sizeof(LONG),
+ 16, // See user32_apitest GetClassInfo, PopupMenuWndProcW
(HICON)OCR_NORMAL,
(HBRUSH)(COLOR_MENU + 1),
FNID_MENU,
@@ -81,7 +81,7 @@ REGISTER_SYSCLASS DefaultServerClasses[] =
ICLS_TOOLTIPS
},
#endif
- { ((PWSTR)((ULONG_PTR)(WORD)(0x8004))), // IconTitle is here for now...
+ { ((PWSTR)WC_ICONTITLE), // IconTitle is here for now...
0,
NULL, // Use User32 procs
0,