Add wxSystemThemedControl and use it in wxMSW
wxSystemThemedControl allows to use the "system theme" (i.e. the theme used by the system applications such as file manager and which can, surprisingly, be different from the default one). Currently it is only implemented for wxMSW and does nothing under the other platforms. Use wxSystemThemedControl for wxDataViewCtrl, wxListCtrl and, optionally, if wxTR_TWIST_BUTTONS style is specified, wxTreeCtrl to give them more native appearance under MSW. Closes #16414.
This commit is contained in:
committed by
Vadim Zeitlin
parent
b7a89f8746
commit
2fff3cd29f
@@ -16,6 +16,7 @@
|
||||
#include "wx/gdicmn.h"
|
||||
#include "wx/event.h"
|
||||
#include "wx/control.h"
|
||||
#include "wx/systhemectrl.h"
|
||||
|
||||
class WXDLLIMPEXP_FWD_CORE wxImageList;
|
||||
|
||||
@@ -377,7 +378,7 @@ private:
|
||||
// the real control class but is just used for implementation convenience. We
|
||||
// should define the public class functions as pure virtual here in the future
|
||||
// however.
|
||||
class WXDLLIMPEXP_CORE wxListCtrlBase : public wxControl
|
||||
class WXDLLIMPEXP_CORE wxListCtrlBase : public wxSystemThemedControl<wxControl>
|
||||
{
|
||||
public:
|
||||
wxListCtrlBase() { }
|
||||
|
Reference in New Issue
Block a user