source: trunk/src/uxtheme/uxtheme.cpp

Last change on this file was 21916, checked in by dmik, 14 years ago

Merge branch gcc-kmk to trunk.

File size: 34.7 KB
Line 
1/* $Id: uxtheme.cpp,v 1.1 2002-04-10 18:35:18 bird Exp $
2 *
3 * UxTheme.DLL Stubs - just to stop some app from loading the stupid dll.
4 *
5 * Copyright (c) 2002 knut st. osmundsen (bird@anduin.net)
6 *
7 * Project Odin Software License can be found in LICENSE.TXT
8 *
9 */
10
11
12/*******************************************************************************
13* Defined Constants And Macros *
14*******************************************************************************/
15
16
17/*******************************************************************************
18* Header Files *
19*******************************************************************************/
20#include <os2win.h>
21#include <winnls.h>
22#include <string.h>
23
24#include <wingdi.h>
25#include <commctrl.h>
26
27#define DBG_LOCALLOG DBG_uxtheme
28#include "dbglocal.h"
29
30
31/*******************************************************************************
32* Defined Constants And Macros *
33*******************************************************************************/
34#define MAX_INTLIST_COUNT 10
35
36/*******************************************************************************
37* Structures and Typedefs *
38*******************************************************************************/
39typedef HANDLE HTHEME;
40
41typedef enum
42{
43 PO_STATE = 0, /* Property was found in the state section. */
44 PO_PART = 1, /* Property was found in the part section. */
45 PO_CLASS = 2, /* Property was found in the class section. */
46 PO_GLOBAL = 3, /* Property was found in the list of global variables. */
47 PO_NOTFOUND = 4 /* Property was not found. */
48} PROPERTYORIGIN;
49
50
51typedef enum
52{
53 TS_MIN, /* Receives the minimum size of a visual style part. */
54 TS_TRUE, /* Receives the size of the visual style part that will best fit the available space. */
55 TS_DRAW /* Receives the size that the theme manager uses to draw a part. */
56} THEMESIZE, THEME_SIZE;
57
58
59typedef struct _INTLIST
60{
61 int iValueCount; /* Number of values in the list.*/
62 int iValues[MAX_INTLIST_COUNT]; /* List of integers. The constant MAX_INTLIST_COUNT, by definition, is equal to 10. */
63} INTLIST, *PINTLIST;
64
65
66typedef struct _MARGINS
67{
68 int cxLeftWidth;
69 int cxRightWidth;
70 int cyTopHeight;
71 int cyBottomHeight;
72} MARGINS, *PMARGINS;
73
74
75
76/*******************************************************************************
77* Functions Prototypes *
78*******************************************************************************/
79extern "C" {
80/*
81 * We doesn't have any headers for these yet.
82 */
83HRESULT WIN32API CloseThemeData(
84 HTHEME hTheme
85);
86
87HRESULT WIN32API DrawThemeBackground(
88 HTHEME hTheme,
89 HDC hdc,
90 int iPartId,
91 int iStateId,
92 const RECT* pRect,
93 const RECT* pClipRect
94);
95
96HRESULT WIN32API DrawThemeEdge(
97 HTHEME hTheme,
98 HDC hdc,
99 int iPartId,
100 int iStateId,
101 const RECT* pDestRect,
102 UINT uEdge,
103 UINT uFlags,
104 RECT* pContentRect
105);
106
107HRESULT WIN32API DrawThemeIcon(
108 HTHEME hTheme,
109 HDC hdc,
110 int iPartId,
111 int iStateId,
112 const RECT* pRect,
113 HIMAGELIST himl,
114 int iImageIndex
115);
116
117HRESULT WIN32API DrawThemeParentBackground(
118 HWND hwnd,
119 HDC hdc,
120 RECT* prc
121);
122
123HRESULT WIN32API DrawThemeText(
124 HTHEME hTheme,
125 HDC hdc,
126 int iPartId,
127 int iStateId,
128 LPCWSTR pszText,
129 int iCharCount,
130 DWORD dwTextFlags,
131 DWORD dwTextFlags2,
132 const RECT* pRect
133);
134
135HRESULT WIN32API EnableThemeDialogTexture(
136 HWND hwnd,
137 DWORD dwFlags
138);
139
140HRESULT WIN32API EnableTheming(
141 BOOL fEnable
142);
143
144HRESULT WIN32API GetCurrentThemeName(
145 LPWSTR pszThemeFileName,
146 int dwMaxNameChars,
147 LPWSTR pszColorBuff,
148 int cchMaxColorChars,
149 LPWSTR pszSizeBuff,
150 int cchMaxSizeChars
151);
152
153DWORD WIN32API GetThemeAppProperties(VOID);
154
155HRESULT WIN32API GetThemeBackgroundContentRect(
156 HTHEME hTheme,
157 HDC hdc,
158 int iPartId,
159 int iStateId,
160 const RECT* pBoundingRect,
161 RECT* pContentRect
162);
163
164HRESULT WIN32API GetThemeBackgroundExtent(
165 HTHEME hTheme,
166 HDC hdc,
167 int iPartId,
168 int iStateId,
169 const RECT* pContentRect,
170 RECT* pExtentRect
171);
172
173HRESULT WIN32API GetThemeBackgroundRegion(
174 HTHEME hTheme,
175 HDC hdc,
176 int iPartId,
177 int iStateId,
178 const RECT* pRect,
179 HRGN* pRegion
180);
181
182HRESULT WIN32API GetThemeBool(
183 HTHEME hTheme,
184 int iPartId,
185 int iStateId,
186 int iPropId,
187 BOOL* pfVal
188);
189
190HRESULT WIN32API GetThemeColor(
191 HTHEME hTheme,
192 int iPartId,
193 int iStateId,
194 int iPropId,
195 COLORREF* pColor
196);
197
198HRESULT WIN32API GetThemeDocumentationProperty(
199 LPCWSTR pszThemeName,
200 LPCWSTR pszPropertyName,
201 LPWSTR pszValueBuff,
202 int cchMaxValChars
203);
204
205HRESULT WIN32API GetThemeEnumValue(
206 HTHEME hTheme,
207 int iPartId,
208 int iStateId,
209 int iPropId,
210 int* piVal
211);
212
213HRESULT WIN32API GetThemeFilename(
214 HTHEME hTheme,
215 int iPartId,
216 int iStateId,
217 int iPropId,
218 LPWSTR pszThemeFilename,
219 int cchMaxBuffChars
220);
221
222HRESULT WIN32API GetThemeFont(
223 HTHEME hTheme,
224 HDC hdc,
225 int iPartId,
226 int iStateId,
227 int iPropId,
228 LOGFONTW* pFont
229);
230
231HRESULT WIN32API GetThemeInt(
232 HTHEME hTheme,
233 int iPartId,
234 int iStateId,
235 int iPropId,
236 int* piVal
237);
238
239HRESULT WIN32API GetThemeIntList(
240 HTHEME hTheme,
241 int iPartId,
242 int iStateId,
243 int iPropId,
244 INTLIST* pIntList
245);
246
247HRESULT WIN32API GetThemeMargins(
248 HTHEME hTheme,
249 HDC hdc,
250 int iPartId,
251 int iStateId,
252 int iPropId,
253 RECT* prc,
254 MARGINS* pMargins
255);
256
257HRESULT WIN32API GetThemeMetric(
258 HTHEME hTheme,
259 HDC hdc,
260 int iPartId,
261 int iStateId,
262 int iPropId,
263 int* piVal
264);
265
266HRESULT WIN32API GetThemePartSize(
267 HTHEME hTheme,
268 HDC hdc,
269 int iPartId,
270 int iStateId,
271 RECT* prc,
272 THEMESIZE eSize,
273 SIZE* psz
274);
275
276HRESULT WIN32API GetThemePosition(
277 HTHEME hTheme,
278 int iPartId,
279 int iStateId,
280 int iPropId,
281 POINT* pPoint
282);
283
284HRESULT WIN32API GetThemePropertyOrigin(
285 HTHEME hTheme,
286 int iPartId,
287 int iStateId,
288 int iPropId,
289 PROPERTYORIGIN* pOrigin
290);
291
292HRESULT WIN32API GetThemeRect(
293 HTHEME hTheme,
294 int iPartId,
295 int iStateId,
296 int iPropId,
297 RECT* pRect
298);
299
300HRESULT WIN32API GetThemeString(
301 HTHEME hTheme,
302 int iPartId,
303 int iStateId,
304 int iPropId,
305 LPWSTR pszBuff,
306 int cchMaxBuffChars
307);
308
309BOOL WIN32API GetThemeSysBool(
310 HTHEME hTheme,
311 int iBoolID
312);
313
314COLORREF WIN32API GetThemeSysColor(
315 HTHEME hTheme,
316 int iColorID
317);
318
319HBRUSH WIN32API GetThemeSysColorBrush(
320 HTHEME hTheme,
321 int iColorID
322);
323
324HRESULT WIN32API GetThemeSysFont(
325 HTHEME hTheme,
326 int iFontID,
327 LOGFONTW* plf
328);
329
330HRESULT WIN32API GetThemeSysInt(
331 HTHEME hTheme,
332 int iIntID,
333 int* piValue
334);
335
336int WIN32API GetThemeSysSize(
337 HTHEME hTheme,
338 int iSizeID
339);
340
341HRESULT WIN32API GetThemeSysString(
342 HTHEME hTheme,
343 int iStringID,
344 LPWSTR pszStringBuff,
345 int cchMaxStringChars
346);
347
348HRESULT WIN32API GetThemeTextExtent(
349 HTHEME hTheme,
350 HDC hdc,
351 int iPartId,
352 int iStateId,
353 LPCWSTR pszText,
354 int iCharCount,
355 DWORD dwTextFlags,
356 const RECT* pBoundingRect,
357 RECT* pExtentRect
358);
359
360HRESULT WIN32API GetThemeTextMetrics(
361 HTHEME hTheme,
362 HDC hdc,
363 int iPartId,
364 int iStateId,
365 TEXTMETRICW* ptm
366);
367
368HTHEME WIN32API GetWindowTheme(
369 HWND hWnd
370);
371
372HRESULT WIN32API HitTestThemeBackground(
373 HTHEME hTheme,
374 HDC hdc,
375 int iPartId,
376 int iStateId,
377 DWORD dwOptions,
378 const RECT* pRect,
379 HRGN hrgn,
380 POINT ptTest,
381 WORD* pwHitTestCode
382);
383
384BOOL WIN32API IsAppThemed(VOID);
385
386BOOL WIN32API IsThemeActive(VOID);
387
388BOOL WIN32API IsThemeBackgroundPartiallyTransparent(
389 HTHEME hTheme,
390 int iPartId,
391 int iStateId
392);
393
394BOOL WIN32API IsThemeDialogTextureEnabled(VOID);
395
396BOOL WIN32API IsThemePartDefined(
397 HTHEME hTheme,
398 int iPartId,
399 int iStateId
400);
401
402HTHEME WIN32API OpenThemeData(
403 HWND hwnd,
404 LPCWSTR pszClassList
405);
406
407VOID WIN32API SetThemeAppProperties(
408 DWORD dwFlags
409);
410
411HRESULT WIN32API SetWindowTheme(
412 HWND hwnd,
413 LPCWSTR pszSubAppName,
414 LPCWSTR pszSubIdList
415);
416
417}
418
419
420/**
421 *
422 * @returns
423 * @param hTheme
424 * @status stub
425 * @author knut st. osmundsen (bird@anduin.net)
426 */
427HRESULT WIN32API CloseThemeData(
428 HTHEME hTheme
429)
430{
431 dprintf(("UXTHEME: %s(%x) - stub\n", __FUNCTION__, hTheme));
432 return S_OK;
433}
434
435
436/**
437 *
438 * @returns
439 * @param hTheme
440 * @param hdc
441 * @param iPartId
442 * @param iStateId
443 * @param pRect
444 * @param pClipRect
445 * @status stub
446 * @author knut st. osmundsen (bird@anduin.net)
447 */
448HRESULT WIN32API DrawThemeBackground(
449 HTHEME hTheme,
450 HDC hdc,
451 int iPartId,
452 int iStateId,
453 const RECT* pRect,
454 const RECT* pClipRect
455)
456{
457 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
458 __FUNCTION__,
459 hTheme,
460 hdc,
461 iPartId,
462 iStateId,
463 pRect,
464 pClipRect));
465 return S_OK;
466}
467
468
469/**
470 *
471 * @returns
472 * @param hTheme
473 * @param hdc
474 * @param iPartId
475 * @param iStateId
476 * @param pDestRect
477 * @param uEdge
478 * @param uFlags
479 * @param pContentRect
480 * @status stub
481 * @author knut st. osmundsen (bird@anduin.net)
482 */
483HRESULT WIN32API DrawThemeEdge(
484 HTHEME hTheme,
485 HDC hdc,
486 int iPartId,
487 int iStateId,
488 const RECT* pDestRect,
489 UINT uEdge,
490 UINT uFlags,
491 RECT* pContentRect
492)
493{
494 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x,%x,%x) - stub\n",
495 __FUNCTION__,
496 hTheme,
497 hdc,
498 iPartId,
499 iStateId,
500 pDestRect,
501 uEdge,
502 uFlags,
503 pContentRect));
504 return S_OK;
505}
506
507
508
509
510/**
511 *
512 * @returns
513 * @param hTheme
514 * @param hdc
515 * @param iPartId
516 * @param iStateId
517 * @param pRect
518 * @param himl
519 * @param iImageIndex
520 * @status stub
521 * @author knut st. osmundsen (bird@anduin.net)
522 */
523HRESULT WIN32API DrawThemeIcon(
524 HTHEME hTheme,
525 HDC hdc,
526 int iPartId,
527 int iStateId,
528 const RECT* pRect,
529 HIMAGELIST himl,
530 int iImageIndex
531)
532{
533 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
534 __FUNCTION__,
535 hTheme,
536 hdc,
537 iPartId,
538 iStateId,
539 pRect,
540 himl,
541 iImageIndex));
542 return S_OK;
543}
544
545
546/**
547 *
548 * @returns
549 * @param hwnd
550 * @param hdc
551 * @param prc
552 * @status stub
553 * @author knut st. osmundsen (bird@anduin.net)
554 */
555HRESULT WIN32API DrawThemeParentBackground(
556 HWND hwnd,
557 HDC hdc,
558 RECT* prc
559)
560{
561 dprintf(("UXTHEME: %s(%x,%x,%x) - stub\n",
562 __FUNCTION__,
563 hwnd,
564 hdc,
565 prc));
566 return S_OK;
567}
568
569
570/**
571 *
572 * @returns
573 * @param hTheme
574 * @param hdc
575 * @param iPartId
576 * @param iStateId
577 * @param pszText
578 * @param iCharCount
579 * @param dwTextFlags
580 * @param dwTextFlags2
581 * @param pRect
582 * @status stub
583 * @author knut st. osmundsen (bird@anduin.net)
584 */
585HRESULT WIN32API DrawThemeText(
586 HTHEME hTheme,
587 HDC hdc,
588 int iPartId,
589 int iStateId,
590 LPCWSTR pszText,
591 int iCharCount,
592 DWORD dwTextFlags,
593 DWORD dwTextFlags2,
594 const RECT* pRect
595)
596{
597 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x,%x,%x,%x) - stub\n",
598 __FUNCTION__,
599 hTheme,
600 hdc,
601 iPartId,
602 iStateId,
603 pszText,
604 iCharCount,
605 dwTextFlags,
606 dwTextFlags2,
607 pRect));
608 return S_OK;
609}
610
611
612/**
613 *
614 * @returns
615 * @param hwnd
616 * @param dwFlags
617 * @status stub
618 * @author knut st. osmundsen (bird@anduin.net)
619 */
620HRESULT WIN32API EnableThemeDialogTexture(
621 HWND hwnd,
622 DWORD dwFlags
623)
624{
625 dprintf(("UXTHEME: %s(%x,%x) - stub\n",
626 __FUNCTION__,
627 hwnd,
628 dwFlags));
629 return S_FALSE;
630}
631
632
633/**
634 *
635 * @returns
636 * @param fEnable
637 * @status stub
638 * @author knut st. osmundsen (bird@anduin.net)
639 */
640HRESULT WIN32API EnableTheming(
641 BOOL fEnable
642)
643{
644 dprintf(("UXTHEME: %s(%x) - stub\n",
645 __FUNCTION__,
646 fEnable));
647 return S_OK;
648}
649
650
651/**
652 *
653 * @returns
654 * @param pszThemeFileName
655 * @param dwMaxNameChars
656 * @param pszColorBuff
657 * @param cchMaxColorChars
658 * @param pszSizeBuff
659 * @param cchMaxSizeChars
660 * @status stub
661 * @author knut st. osmundsen (bird@anduin.net)
662 */
663HRESULT WIN32API GetCurrentThemeName(
664 LPWSTR pszThemeFileName,
665 int dwMaxNameChars,
666 LPWSTR pszColorBuff,
667 int cchMaxColorChars,
668 LPWSTR pszSizeBuff,
669 int cchMaxSizeChars
670)
671{
672 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
673 __FUNCTION__,
674 pszThemeFileName,
675 dwMaxNameChars,
676 pszColorBuff,
677 cchMaxColorChars,
678 pszSizeBuff,
679 cchMaxSizeChars));
680 return S_FALSE;
681}
682
683
684/**
685 *
686 * @returns
687 * @status stub
688 * @author knut st. osmundsen (bird@anduin.net)
689 */
690DWORD WIN32API GetThemeAppProperties(VOID)
691{
692 dprintf(("UXTHEME: %s() - stub\n", __FUNCTION__));
693 return 0;
694}
695
696
697/**
698 *
699 * @returns
700 * @param hTheme
701 * @param hdc
702 * @param iPartId
703 * @param iStateId
704 * @param pBoundingRect
705 * @param pContentRect
706 * @status stub
707 * @author knut st. osmundsen (bird@anduin.net)
708 */
709HRESULT WIN32API GetThemeBackgroundContentRect(
710 HTHEME hTheme,
711 HDC hdc,
712 int iPartId,
713 int iStateId,
714 const RECT* pBoundingRect,
715 RECT* pContentRect
716)
717{
718 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
719 __FUNCTION__,
720 hTheme,
721 hdc,
722 iPartId,
723 iStateId,
724 pBoundingRect,
725 pContentRect));
726 return S_FALSE;
727}
728
729
730/**
731 *
732 * @returns
733 * @param hTheme
734 * @param hdc
735 * @param iPartId
736 * @param iStateId
737 * @param pContentRect
738 * @param pExtentRect
739 * @status stub
740 * @author knut st. osmundsen (bird@anduin.net)
741 */
742HRESULT WIN32API GetThemeBackgroundExtent(
743 HTHEME hTheme,
744 HDC hdc,
745 int iPartId,
746 int iStateId,
747 const RECT* pContentRect,
748 RECT* pExtentRect
749)
750{
751 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
752 __FUNCTION__,
753 hTheme,
754 hdc,
755 iPartId,
756 iStateId,
757 pContentRect,
758 pExtentRect));
759 return S_FALSE;
760}
761
762
763/**
764 *
765 * @returns
766 * @param hTheme
767 * @param hdc
768 * @param iPartId
769 * @param iStateId
770 * @param pRect
771 * @param pRegion
772 * @status stub
773 * @author knut st. osmundsen (bird@anduin.net)
774 */
775HRESULT WIN32API GetThemeBackgroundRegion(
776 HTHEME hTheme,
777 HDC hdc,
778 int iPartId,
779 int iStateId,
780 const RECT* pRect,
781 HRGN* pRegion
782)
783{
784 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
785 __FUNCTION__,
786 hTheme,
787 hdc,
788 iPartId,
789 iStateId,
790 pRect,
791 pRegion));
792 return S_FALSE;
793}
794
795
796/**
797 *
798 * @returns
799 * @param hTheme
800 * @param iPartId
801 * @param iStateId
802 * @param iPropId
803 * @param pfVal
804 * @status stub
805 * @author knut st. osmundsen (bird@anduin.net)
806 */
807HRESULT WIN32API GetThemeBool(
808 HTHEME hTheme,
809 int iPartId,
810 int iStateId,
811 int iPropId,
812 BOOL* pfVal
813)
814{
815 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
816 __FUNCTION__,
817 hTheme,
818 iPartId,
819 iStateId,
820 iPropId,
821 pfVal));
822 return S_FALSE;
823}
824
825
826/**
827 *
828 * @returns
829 * @param hTheme
830 * @param iPartId
831 * @param iStateId
832 * @param iPropId
833 * @param pColor
834 * @status stub
835 * @author knut st. osmundsen (bird@anduin.net)
836 */
837HRESULT WIN32API GetThemeColor(
838 HTHEME hTheme,
839 int iPartId,
840 int iStateId,
841 int iPropId,
842 COLORREF* pColor
843)
844{
845 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
846 __FUNCTION__,
847 hTheme,
848 iPartId,
849 iStateId,
850 iPropId,
851 pColor));
852 return S_FALSE;
853}
854
855
856/**
857 *
858 * @returns
859 * @param pszThemeName
860 * @param pszPropertyName
861 * @param pszValueBuff
862 * @param cchMaxValChars
863 * @status stub
864 * @author knut st. osmundsen (bird@anduin.net)
865 */
866HRESULT WIN32API GetThemeDocumentationProperty(
867 LPCWSTR pszThemeName,
868 LPCWSTR pszPropertyName,
869 LPWSTR pszValueBuff,
870 int cchMaxValChars
871)
872{
873 dprintf(("UXTHEME: %s(%x,%x,%x,%x) - stub\n",
874 __FUNCTION__,
875 pszThemeName,
876 pszPropertyName,
877 pszValueBuff,
878 cchMaxValChars));
879 return S_FALSE;
880}
881
882
883/**
884 *
885 * @returns
886 * @param hTheme
887 * @param iPartId
888 * @param iStateId
889 * @param iPropId
890 * @param piVal
891 * @status stub
892 * @author knut st. osmundsen (bird@anduin.net)
893 */
894HRESULT WIN32API GetThemeEnumValue(
895 HTHEME hTheme,
896 int iPartId,
897 int iStateId,
898 int iPropId,
899 int* piVal
900)
901{
902 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
903 __FUNCTION__,
904 hTheme,
905 iPartId,
906 iStateId,
907 iPropId,
908 piVal));
909 return S_FALSE;
910}
911
912
913/**
914 *
915 * @returns
916 * @param hTheme
917 * @param iPartId
918 * @param iStateId
919 * @param iPropId
920 * @param pszThemeFilename
921 * @param cchMaxBuffChars
922 * @status stub
923 * @author knut st. osmundsen (bird@anduin.net)
924 */
925HRESULT WIN32API GetThemeFilename(
926 HTHEME hTheme,
927 int iPartId,
928 int iStateId,
929 int iPropId,
930 LPWSTR pszThemeFilename,
931 int cchMaxBuffChars
932)
933{
934 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
935 __FUNCTION__,
936 hTheme,
937 iPartId,
938 iStateId,
939 iPropId,
940 pszThemeFilename,
941 cchMaxBuffChars));
942 return S_FALSE;
943}
944
945
946/**
947 *
948 * @returns
949 * @param hTheme
950 * @param hdc
951 * @param iPartId
952 * @param iStateId
953 * @param iPropId
954 * @param pFont
955 * @status stub
956 * @author knut st. osmundsen (bird@anduin.net)
957 */
958HRESULT WIN32API GetThemeFont(
959 HTHEME hTheme,
960 HDC hdc,
961 int iPartId,
962 int iStateId,
963 int iPropId,
964 LOGFONTW* pFont
965)
966{
967 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
968 __FUNCTION__,
969 hTheme,
970 hdc,
971 iPartId,
972 iStateId,
973 iPropId,
974 pFont));
975 return S_FALSE;
976}
977
978
979/**
980 *
981 * @returns
982 * @param hTheme
983 * @param iPartId
984 * @param iStateId
985 * @param iPropId
986 * @param piVal
987 * @status stub
988 * @author knut st. osmundsen (bird@anduin.net)
989 */
990HRESULT WIN32API GetThemeInt(
991 HTHEME hTheme,
992 int iPartId,
993 int iStateId,
994 int iPropId,
995 int* piVal
996)
997{
998 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
999 __FUNCTION__,
1000 hTheme,
1001 iPartId,
1002 iStateId,
1003 iPropId,
1004 piVal));
1005 return S_FALSE;
1006}
1007
1008
1009/**
1010 *
1011 * @returns
1012 * @param hTheme
1013 * @param iPartId
1014 * @param iStateId
1015 * @param iPropId
1016 * @param pIntList
1017 * @status stub
1018 * @author knut st. osmundsen (bird@anduin.net)
1019 */
1020HRESULT WIN32API GetThemeIntList(
1021 HTHEME hTheme,
1022 int iPartId,
1023 int iStateId,
1024 int iPropId,
1025 INTLIST* pIntList
1026)
1027{
1028 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
1029 __FUNCTION__,
1030 hTheme,
1031 iPartId,
1032 iStateId,
1033 iPropId,
1034 pIntList));
1035 return S_FALSE;
1036}
1037
1038
1039/**
1040 *
1041 * @returns
1042 * @param hTheme
1043 * @param hdc
1044 * @param iPartId
1045 * @param iStateId
1046 * @param iPropId
1047 * @param prc
1048 * @param pMargins
1049 * @status stub
1050 * @author knut st. osmundsen (bird@anduin.net)
1051 */
1052HRESULT WIN32API GetThemeMargins(
1053 HTHEME hTheme,
1054 HDC hdc,
1055 int iPartId,
1056 int iStateId,
1057 int iPropId,
1058 RECT* prc,
1059 MARGINS* pMargins
1060)
1061{
1062 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x,%x) - stub\n",
1063 __FUNCTION__,
1064 hTheme,
1065 hdc,
1066 iPartId,
1067 iStateId,
1068 iPropId,
1069 prc,
1070 pMargins));
1071 return S_FALSE;
1072}
1073
1074
1075/**
1076 *
1077 * @returns
1078 * @param hTheme
1079 * @param hdc
1080 * @param iPartId
1081 * @param iStateId
1082 * @param iPropId
1083 * @param piVal
1084 * @status stub
1085 * @author knut st. osmundsen (bird@anduin.net)
1086 */
1087HRESULT WIN32API GetThemeMetric(
1088 HTHEME hTheme,
1089 HDC hdc,
1090 int iPartId,
1091 int iStateId,
1092 int iPropId,
1093 int* piVal
1094)
1095{
1096 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
1097 __FUNCTION__,
1098 hTheme,
1099 hdc,
1100 iPartId,
1101 iStateId,
1102 iPropId,
1103 piVal));
1104 return S_FALSE;
1105}
1106
1107
1108/**
1109 *
1110 * @returns
1111 * @param hTheme
1112 * @param hdc
1113 * @param iPartId
1114 * @param iStateId
1115 * @param prc
1116 * @param eSize
1117 * @param psz
1118 * @status stub
1119 * @author knut st. osmundsen (bird@anduin.net)
1120 */
1121HRESULT WIN32API GetThemePartSize(
1122 HTHEME hTheme,
1123 HDC hdc,
1124 int iPartId,
1125 int iStateId,
1126 RECT* prc,
1127 THEMESIZE eSize,
1128 SIZE* psz
1129)
1130{
1131 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x,%x) - stub\n",
1132 __FUNCTION__,
1133 hTheme,
1134 hdc,
1135 iPartId,
1136 iStateId,
1137 prc,
1138 eSize,
1139 psz));
1140 return S_FALSE;
1141}
1142
1143
1144/**
1145 *
1146 * @returns
1147 * @param hTheme
1148 * @param iPartId
1149 * @param iStateId
1150 * @param iPropId
1151 * @param pPoint
1152 * @status stub
1153 * @author knut st. osmundsen (bird@anduin.net)
1154 */
1155HRESULT WIN32API GetThemePosition(
1156 HTHEME hTheme,
1157 int iPartId,
1158 int iStateId,
1159 int iPropId,
1160 POINT* pPoint
1161)
1162{
1163 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
1164 __FUNCTION__,
1165 hTheme,
1166 iPartId,
1167 iStateId,
1168 iPropId,
1169 pPoint));
1170 return S_FALSE;
1171}
1172
1173
1174/**
1175 *
1176 * @returns
1177 * @param hTheme
1178 * @param iPartId
1179 * @param iStateId
1180 * @param iPropId
1181 * @param pOrigin
1182 * @status stub
1183 * @author knut st. osmundsen (bird@anduin.net)
1184 */
1185HRESULT WIN32API GetThemePropertyOrigin(
1186 HTHEME hTheme,
1187 int iPartId,
1188 int iStateId,
1189 int iPropId,
1190 PROPERTYORIGIN* pOrigin
1191)
1192{
1193 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
1194 __FUNCTION__,
1195 hTheme,
1196 iPartId,
1197 iStateId,
1198 iPropId,
1199 pOrigin));
1200 return S_FALSE;
1201}
1202
1203
1204/**
1205 *
1206 * @returns
1207 * @param hTheme
1208 * @param iPartId
1209 * @param iStateId
1210 * @param iPropId
1211 * @param pRect
1212 * @status stub
1213 * @author knut st. osmundsen (bird@anduin.net)
1214 */
1215HRESULT WIN32API GetThemeRect(
1216 HTHEME hTheme,
1217 int iPartId,
1218 int iStateId,
1219 int iPropId,
1220 RECT* pRect
1221)
1222{
1223 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
1224 __FUNCTION__,
1225 hTheme,
1226 iPartId,
1227 iStateId,
1228 iPropId,
1229 pRect));
1230 return S_FALSE;
1231}
1232
1233
1234/**
1235 *
1236 * @returns
1237 * @param hTheme
1238 * @param iPartId
1239 * @param iStateId
1240 * @param iPropId
1241 * @param pszBuff
1242 * @param cchMaxBuffChars
1243 * @status stub
1244 * @author knut st. osmundsen (bird@anduin.net)
1245 */
1246HRESULT WIN32API GetThemeString(
1247 HTHEME hTheme,
1248 int iPartId,
1249 int iStateId,
1250 int iPropId,
1251 LPWSTR pszBuff,
1252 int cchMaxBuffChars
1253)
1254{
1255 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x) - stub\n",
1256 __FUNCTION__,
1257 hTheme,
1258 iPartId,
1259 iStateId,
1260 iPropId,
1261 pszBuff,
1262 cchMaxBuffChars));
1263 return S_FALSE;
1264}
1265
1266
1267/**
1268 *
1269 * @returns
1270 * @param hTheme
1271 * @param iBoolID
1272 * @status stub
1273 * @author knut st. osmundsen (bird@anduin.net)
1274 */
1275BOOL WIN32API GetThemeSysBool(
1276 HTHEME hTheme,
1277 int iBoolID
1278)
1279{
1280 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x,%x,%x,%x) - stub\n",
1281 __FUNCTION__,
1282 hTheme,
1283 iBoolID));
1284 return FALSE;
1285}
1286
1287
1288/**
1289 *
1290 * @returns
1291 * @param hTheme
1292 * @param iColorID
1293 * @status stub
1294 * @author knut st. osmundsen (bird@anduin.net)
1295 */
1296COLORREF WIN32API GetThemeSysColor(
1297 HTHEME hTheme,
1298 int iColorID
1299)
1300{
1301 dprintf(("UXTHEME: %s(%x,%x) - stub\n",
1302 __FUNCTION__,
1303 hTheme,
1304 iColorID));
1305 return 0;
1306}
1307
1308
1309/**
1310 *
1311 * @returns
1312 * @param hTheme
1313 * @param iColorID
1314 * @status stub
1315 * @author knut st. osmundsen (bird@anduin.net)
1316 */
1317HBRUSH WIN32API GetThemeSysColorBrush(
1318 HTHEME hTheme,
1319 int iColorID
1320)
1321{
1322 dprintf(("UXTHEME: %s(%x,%x) - stub\n",
1323 __FUNCTION__,
1324 hTheme,
1325 iColorID));
1326 return NULL;
1327}
1328
1329
1330
1331/**
1332 *
1333 * @returns
1334 * @param hTheme
1335 * @param iFontID
1336 * @param plf
1337 * @status stub
1338 * @author knut st. osmundsen (bird@anduin.net)
1339 */
1340HRESULT WIN32API GetThemeSysFont(
1341 HTHEME hTheme,
1342 int iFontID,
1343 LOGFONTW* plf
1344)
1345{
1346 dprintf(("UXTHEME: %s(%x,%x,%x) - stub\n",
1347 __FUNCTION__,
1348 hTheme,
1349 iFontID,
1350 plf));
1351 return S_FALSE;
1352}
1353
1354
1355/**
1356 *
1357 * @returns
1358 * @param hTheme
1359 * @param iIntID
1360 * @param piValue
1361 * @status stub
1362 * @author knut st. osmundsen (bird@anduin.net)
1363 */
1364HRESULT WIN32API GetThemeSysInt(
1365 HTHEME hTheme,
1366 int iIntID,
1367 int* piValue
1368)
1369{
1370 dprintf(("UXTHEME: %s(%x,%x,%x) - stub\n",
1371 __FUNCTION__,
1372 hTheme,
1373 iIntID,
1374 piValue));
1375 return S_FALSE;
1376}
1377
1378
1379/**
1380 *
1381 * @returns
1382 * @param hTheme
1383 * @param iSizeID
1384 * @status stub
1385 * @author knut st. osmundsen (bird@anduin.net)
1386 */
1387int WIN32API GetThemeSysSize(
1388 HTHEME hTheme,
1389 int iSizeID
1390)
1391{
1392 dprintf(("UXTHEME: %s(%x,%x) - stub\n",
1393 __FUNCTION__,
1394 hTheme,
1395 iSizeID));
1396 return S_FALSE;
1397}
1398
1399
1400/**
1401 *
1402 * @returns
1403 * @param hTheme
1404 * @param iStringID
1405 * @param pszStringBuff
1406 * @param cchMaxStringChars
1407 * @status stub
1408 * @author knut st. osmundsen (bird@anduin.net)
1409 */
1410HRESULT WIN32API GetThemeSysString(
1411 HTHEME hTheme,
1412 int iStringID,
1413 LPWSTR pszStringBuff,
1414 int cchMaxStringChars
1415)
1416{
1417 dprintf(("UXTHEME: %s(%x,%x,%x,%x) - stub\n",
1418 __FUNCTION__,
1419 hTheme,
1420 iStringID,
1421 pszStringBuff,
1422 cchMaxStringChars));
1423 return S_FALSE;
1424}
1425
1426
1427/**
1428 *
1429 * @returns
1430 * @param hTheme
1431 * @param hdc
1432 * @param iPartId
1433 * @param iStateId
1434 * @param pszText
1435 * @param iCharCount
1436 * @param dwTextFlags
1437 * @param pBoundingRect
1438 * @param pExtentRect
1439 * @status stub
1440 * @author knut st. osmundsen (bird@anduin.net)
1441 */
1442HRESULT WIN32API GetThemeTextExtent(
1443 HTHEME hTheme,
1444 HDC hdc,
1445 int iPartId,
1446 int iStateId,
1447 LPCWSTR pszText,
1448 int iCharCount,
1449 DWORD dwTextFlags,
1450 const RECT* pBoundingRect,
1451 RECT* pExtentRect
1452)
1453{
1454 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x,%x,%x,%x) - stub\n",
1455 __FUNCTION__,
1456 hTheme,
1457 hdc,
1458 iPartId,
1459 iStateId,
1460 pszText,
1461 iCharCount,
1462 dwTextFlags,
1463 pBoundingRect,
1464 pExtentRect));
1465 return S_FALSE;
1466}
1467
1468
1469/**
1470 *
1471 * @returns
1472 * @param hTheme
1473 * @param hdc
1474 * @param iPartId
1475 * @param iStateId
1476 * @param ptm
1477 * @status stub
1478 * @author knut st. osmundsen (bird@anduin.net)
1479 */
1480HRESULT WIN32API GetThemeTextMetrics(
1481 HTHEME hTheme,
1482 HDC hdc,
1483 int iPartId,
1484 int iStateId,
1485 TEXTMETRICW* ptm
1486)
1487{
1488 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x) - stub\n",
1489 __FUNCTION__,
1490 hTheme,
1491 hdc,
1492 iPartId,
1493 iStateId,
1494 ptm ));
1495 return S_FALSE;
1496}
1497
1498
1499/**
1500 *
1501 * @returns
1502 * @param hWnd
1503 * @status stub
1504 * @author knut st. osmundsen (bird@anduin.net)
1505 */
1506HTHEME WIN32API GetWindowTheme(
1507 HWND hWnd
1508)
1509{
1510 dprintf(("UXTHEME: %s(%x) - stub\n",
1511 __FUNCTION__,
1512 hWnd));
1513 return NULL;
1514}
1515
1516
1517/**
1518 *
1519 * @returns
1520 * @param hTheme
1521 * @param hdc
1522 * @param iPartId
1523 * @param iStateId
1524 * @param dwOptions
1525 * @param pRect
1526 * @param hrgn
1527 * @param ptTest
1528 * @param pwHitTestCode
1529 * @status stub
1530 * @author knut st. osmundsen (bird@anduin.net)
1531 */
1532HRESULT WIN32API HitTestThemeBackground(
1533 HTHEME hTheme,
1534 HDC hdc,
1535 int iPartId,
1536 int iStateId,
1537 DWORD dwOptions,
1538 const RECT* pRect,
1539 HRGN hrgn,
1540 POINT ptTest,
1541 WORD* pwHitTestCode
1542)
1543{
1544 dprintf(("UXTHEME: %s(%x,%x,%x,%x,%x,%x,%x,%x,%x) - stub\n",
1545 __FUNCTION__,
1546 hTheme,
1547 hdc,
1548 iPartId,
1549 iStateId,
1550 dwOptions,
1551 pRect,
1552 hrgn,
1553 ptTest,
1554 pwHitTestCode));
1555 return S_OK;
1556}
1557
1558
1559/**
1560 *
1561 * @returns
1562 * @status stub
1563 * @author knut st. osmundsen (bird@anduin.net)
1564 */
1565BOOL WIN32API IsAppThemed(VOID)
1566{
1567 dprintf(("UXTHEME: %s() - stub\n", __FUNCTION__));
1568 return FALSE;
1569}
1570
1571
1572/**
1573 *
1574 * @returns
1575 * @status stub
1576 * @author knut st. osmundsen (bird@anduin.net)
1577 * @remark
1578 */
1579BOOL WIN32API IsThemeActive(VOID)
1580{
1581 dprintf(("UXTHEME: %s() - stub\n", __FUNCTION__));
1582 return FALSE;
1583}
1584
1585
1586/**
1587 *
1588 * @returns
1589 * @param hTheme
1590 * @param iPartId
1591 * @param iStateId
1592 * @status stub.
1593 * @author knut st. osmundsen (bird@anduin.net)
1594 */
1595BOOL WIN32API IsThemeBackgroundPartiallyTransparent(
1596 HTHEME hTheme,
1597 int iPartId,
1598 int iStateId
1599)
1600{
1601 dprintf(("UXTHEME: %s(%x,%x,%x) - stub\n",
1602 __FUNCTION__,
1603 hTheme,
1604 iPartId,
1605 iStateId));
1606 return FALSE;
1607}
1608
1609/**
1610 *
1611 * @returns
1612 * @status stub
1613 * @author knut st. osmundsen (bird@anduin.net)
1614 */
1615BOOL WIN32API IsThemeDialogTextureEnabled(VOID)
1616{
1617 dprintf(("UXTHEME: %s() - stub\n", __FUNCTION__));
1618 return FALSE;
1619}
1620
1621
1622/**
1623 *
1624 * @returns
1625 * @param hTheme
1626 * @param iPartId
1627 * @param iStateId
1628 * @status stub
1629 * @author knut st. osmundsen (bird@anduin.net)
1630 */
1631BOOL WIN32API IsThemePartDefined(
1632 HTHEME hTheme,
1633 int iPartId,
1634 int iStateId
1635)
1636{
1637 dprintf(("UXTHEME: %s(%x,%x,%x) - stub\n",
1638 __FUNCTION__,
1639 hTheme,
1640 iPartId,
1641 iStateId));
1642 return FALSE;
1643}
1644
1645
1646/**
1647 *
1648 * @returns
1649 * @param hwnd
1650 * @param pszClassList
1651 * @status stub
1652 * @author knut st. osmundsen (bird@anduin.net)
1653 */
1654HTHEME OpenThemeData(
1655 HWND hwnd,
1656 LPCWSTR pszClassList
1657)
1658{
1659 dprintf(("UXTHEME: %s(%x, %x) - stub - returns NULL\n",
1660 __FUNCTION__,
1661 hwnd,
1662 pszClassList));
1663 return NULL;
1664}
1665
1666
1667/**
1668 *
1669 * @returns
1670 * @param dwFlags
1671 * @status stub
1672 * @author knut st. osmundsen (bird@anduin.net)
1673 */
1674VOID WIN32API SetThemeAppProperties(
1675 DWORD dwFlags
1676)
1677{
1678 dprintf(("UXTHEME: %s(%x) - stub\n",
1679 __FUNCTION__,
1680 dwFlags));
1681}
1682
1683
1684/**
1685 *
1686 * @returns
1687 * @param hwnd
1688 * @param pszSubAppName
1689 * @param pszSubIdList
1690 * @status stub
1691 * @author knut st. osmundsen (bird@anduin.net)
1692 */
1693HRESULT WIN32API SetWindowTheme(
1694 HWND hwnd,
1695 LPCWSTR pszSubAppName,
1696 LPCWSTR pszSubIdList
1697)
1698{
1699 dprintf(("UXTHEME: %s(%x,%x,%x) - stub\n",
1700 __FUNCTION__,
1701 hwnd,
1702 pszSubAppName,
1703 pszSubIdList));
1704 return S_FALSE;
1705}
Note: See TracBrowser for help on using the repository browser.