Zhiyi Zhang : uxtheme: Support parsing more window parts and states.

Alexandre Julliard julliard at winehq.org
Thu Jun 23 15:52:27 CDT 2022


Module: wine
Branch: master
Commit: 71bef6c985c3d37e4fbfdd7ac8983e3296814359
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=71bef6c985c3d37e4fbfdd7ac8983e3296814359

Author: Zhiyi Zhang <zzhang at codeweavers.com>
Date:   Mon Jun  6 17:35:39 2022 +0800

uxtheme: Support parsing more window parts and states.

Signed-off-by: Zhiyi Zhang <zzhang at codeweavers.com>

---

 dlls/uxtheme/stylemap.c | 5 +++++
 include/vsstyle.h       | 1 +
 2 files changed, 6 insertions(+)

diff --git a/dlls/uxtheme/stylemap.c b/dlls/uxtheme/stylemap.c
index f69be5f5fd4..e1973305076 100644
--- a/dlls/uxtheme/stylemap.c
+++ b/dlls/uxtheme/stylemap.c
@@ -2,6 +2,7 @@
  * msstyle data maps
  *
  * Copyright (C) 2004 Kevin Koltzau
+ * Copyright 2021-2022 Zhiyi Zhang for CodeWeavers
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -1397,6 +1398,10 @@ static const MSSTYLES_CLASS_MAP classWindow[] = {
     {WP_SMALLFRAMERIGHTSIZINGTEMPLATE, 0, L"SMALLFRAMERIGHTSIZINGTEMPLATE"},
     {WP_FRAMEBOTTOMSIZINGTEMPLATE, 0, L"FRAMEBOTTOMSIZINGTEMPLATE"},
     {WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE, 0, L"SMALLFRAMEBOTTOMSIZINGTEMPLATE"},
+    {WP_FRAME, 0, L"FRAME"},
+    {WP_FRAME, FS_ACTIVE, L"ACTIVE"},
+    {WP_FRAME, FS_INACTIVE, L"INACTIVE"},
+    {WP_BORDER, 0, L"BORDER"},
     {0, 0, L""}
 };
 
diff --git a/include/vsstyle.h b/include/vsstyle.h
index 09948cf8dd5..4bc3469ae87 100644
--- a/include/vsstyle.h
+++ b/include/vsstyle.h
@@ -1589,6 +1589,7 @@ enum WINDOWPARTS {
     WP_FRAMEBOTTOMSIZINGTEMPLATE = 36,
     WP_SMALLFRAMEBOTTOMSIZINGTEMPLATE = 37,
     WP_FRAME = 38,
+    WP_BORDER = 39,
 };
 
 #define WINDOWSTYLEPARTS WINDOWPARTS;




More information about the wine-cvs mailing list