]> git.saurik.com Git - wxWidgets.git/commitdiff
make it possible to easily define artID from a string (for XRC)
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 17 Aug 2002 22:24:34 +0000 (22:24 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 17 Aug 2002 22:24:34 +0000 (22:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16585 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/artprov.h

index 26c324b8e9aae1d4ddc3413a2138e9dde95148f3..1c9807f160377aca3fedb01d4c3574389bc20992 100644 (file)
@@ -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