From 4c2afb6fbc2dd02fa9672fae71767665ce32ae38 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 17 Aug 2002 22:24:34 +0000 Subject: [PATCH] make it possible to easily define artID from a string (for XRC) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/artprov.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/wx/artprov.h b/include/wx/artprov.h index 26c324b8e9..1c9807f160 100644 --- a/include/wx/artprov.h +++ b/include/wx/artprov.h @@ -30,8 +30,10 @@ class WXDLLEXPORT wxArtProviderCache; typedef wxString wxArtClient; typedef wxString wxArtID; -#define wxART_MAKE_CLIENT_ID(id) _T(#id)_T("_C") -#define wxART_MAKE_ART_ID(id) _T(#id) +#define wxART_MAKE_CLIENT_ID_FROM_STR(id) id _T("_C") +#define wxART_MAKE_CLIENT_ID(id) wxART_MAKE_CLIENT_ID_FROM_STR(_T(#id)) +#define wxART_MAKE_ART_ID_FROM_STR(id) id +#define wxART_MAKE_ART_ID(id) wxART_MAKE_ART_ID_FROM_STR(_T(#id)) // ---------------------------------------------------------------------------- // Art clients -- 2.45.2