Commit Graph

33 Commits

Author SHA1 Message Date
Vadim Zeitlin
089eeea3ef Fix wxMSW build with wxUSE_UXTHEME==0
Make wxUxThemeIsActive() available even in this case to fix compilation
in some places and add the unavoidable preprocessor checks in other
ones.

Closes #18207.
2018-12-08 20:24:05 +01:00
Vadim Zeitlin
19caf034c3 Fix build problem with MSVS 2005 in wx/msw/uxtheme.h
Avoid conflict with the incomplete MENUPARTS enum defined in the SDK
header included with this compiler.

Closes #18217.
2018-09-13 00:08:36 +02:00
Tobias Taschner
2d064ea3b9
Move UXTheme symbol definitions for Vista+ to msw/uxtheme.h
Remove various definitions and symbol declarations from
numerous files using msw/uxtheme.h to a single file.
When possible vssym32.h is included from the Windows SDK.
For older SDKs tmschema.h is included and missing symbols
are defined in msw/uxtheme.h.
2018-01-22 00:53:21 +01:00
Tobias Taschner
ddceaab001
Remove MSW wxUxThemeEngine class
This undocumented "private" class was used for various windows UxTheme
functions which are available since WinXP. As wxWidgets 3.1 is XP+ it
does not make sense anymore to load the theme functions dynamically.
2018-01-22 00:51:11 +01:00
Nusi
446d707064 Get access to DrawThemeBackgroundEx API from wxUxThemeEngine (wxMSW) 2017-08-01 21:37:19 +02:00
Nusi
d1ea25be06 Fix signature of DrawThemeParentBackground API in wxUxThemeEngine (wxMSW)
According to the documentation, 3-rd parameter is a pointer
to the constant RECT structure.
2017-08-01 21:36:58 +02:00
Tobias Taschner
b7a89f8746 Add wxRendererNative::DrawItemText() for list-like controls
Add a new method that should be used for drawing the elements of list-like
controls (i.e. wx{List,Tree,DataView}Ctrl and similar).

Implement it for wxMSW natively and provide a straightforward generic fallback
for the other ports.

See #16414.
2015-09-17 14:49:13 +02:00
Vadim Zeitlin
3f66f6a5b3 Remove all lines containing cvs/svn "$Id$" keyword.
This keyword is not expanded by Git which means it's not replaced with the
correct revision value in the releases made using git-based scripts and it's
confusing to have lines with unexpanded "$Id$" in the released files. As
expanding them with Git is not that simple (it could be done with git archive
and export-subst attribute) and there are not many benefits in having them in
the first place, just remove all these lines.

If nothing else, this will make an eventual transition to Git simpler.

Closes #14487.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-26 16:02:46 +00:00
Vadim Zeitlin
3120eccfe2 Fix confusion with LOGFONT{A,W} parameters to MSW GetTheme[Sys]Font().
Change the signature of GetThemeFont() and GetThemeSysFont() methods of
wxUxThemeEngine to take an artificial wxUxThemeFont::Ptr type instead of
LOGFONT which allows the broken code to compile correctly and even work in
Unicode builds but crashed in ANSI ones under Windows Vista/7 as these
functions expect a LOGFONTW and not LOGFONTA even in non-Unicode build under
these systems.

This generalizes the previous fix/workaround for the same problem in
wxStaticBox so remove it now and use wxUxThemeFont both there and in
wxMenuItem to avoid crashes when using owner-drawn menus in ANSI build.

Closes #12364.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-10-30 23:50:22 +00:00
Vadim Zeitlin
526954c596 Globally use "wxWindows licence" consistently.
Use "wxWindows licence" and not "wxWidgets licence" (the latter doesn't
exist) and consistently spell "licence" using British spelling.

See #12165.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-07-13 13:29:13 +00:00
Vadim Zeitlin
c0c133e13b add wx-prefixed and semicolon-requiring versions of DECLARE_NO_{COPY,ASSIGN}_CLASS macros
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-08 11:45:59 +00:00
Francesco Montorsi
53a2db124c substitute WXDLLEXPORT with WXDLLIMPEXP_CORE and WXDLLEXPORT_DATA with WXDLLIMPEXP_DATA_CORE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52834 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-26 15:06:00 +00:00
Vadim Zeitlin
e6efee0079 need to include wx/msw/private.h to get GetHwnd() which is used here
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-30 15:37:42 +00:00
Vadim Zeitlin
317121eac5 take const wxWindow * in wxUxThemeHandle ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-03 14:56:05 +00:00
Vadim Zeitlin
dedba2a11f use wx/dynlib.h and not wx/dynload.h (patch 1448691)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38459 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-31 00:03:15 +00:00
Mart Raudsepp
8907154c1a Nuke #pragma implementation/interface's
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Julian Smart
92199f4cb8 Use theme and HTML Help headers from Wine (with permission)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-14 16:58:36 +00:00
Julian Smart
21c8c52360 Removed non-theme related defs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-05 15:56:34 +00:00
Julian Smart
0ea1cce3f6 Clarified copyright
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-05-05 15:04:32 +00:00
Vadim Zeitlin
1a38c220e1 last commit broke compilation for wxUSE_UXTHEME == 0; fixing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 21:52:18 +00:00
Vadim Zeitlin
8a462d4ee1 added GetIfActive() method returning non-NULL engine only if themes are not only available, but really use
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30630 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 17:17:00 +00:00
Włodzimierz Skiba
27d2dbbcca Source cleaning: -1/wxID_ANY/wxDefaultCoord, ::, !!/!IsEmpty(), TRUE/true. FALSE/false, tabs, whitespaces.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-07 11:11:05 +00:00
Julian Smart
655719367a Use old licence name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e Name and version changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Václav Slavík
1202890513 added support for gcc precompiled headers
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Václav Slavík
b3062afd70 compilation fix for bcc
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-02 10:47:58 +00:00
Vadim Zeitlin
07e9078279 check for comctl32.dll version in wxUxThemeEngine::Initialize()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-01 22:04:46 +00:00
Julian Smart
3255bce320 Only draw borders if wxSP_3DBORDER specified, as before
Added IsAppThemedEx which _really_ tells you if the app is
themed, and used it in wxRendererNative::GetDefault()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-01 14:12:55 +00:00
Václav Slavík
85b657c79d compilation fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 10:12:33 +00:00
Vadim Zeitlin
ca5ccd7eeb added wxUxThemeHandle class for opening/closing theme handles easily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 00:59:37 +00:00
Vadim Zeitlin
2d9c0e97c5 [start of] cleanup uxtheme support code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-30 22:31:20 +00:00
Julian Smart
85b43fbf7a Attempt to make wxWindows play better with XP themes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-02 10:27:03 +00:00
Julian Smart
0d1cb8cb29 Applied patch [ 619386 ] uxtheme.dll support
with filename changes


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20819 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-01 15:18:36 +00:00