apply XRCID() automatically to XRCSIZERITEM() argument (patch 1798697)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48836 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-20 16:29:05 +00:00
parent 564da6ff0b
commit 03cf4aa61d
2 changed files with 3 additions and 3 deletions

View File

@@ -520,7 +520,7 @@ The code can then access the sizer item by using {\tt XRCSIZERITEM} and
{\tt XRCID} together. {\tt XRCID} together.
\begin{verbatim} \begin{verbatim}
wxSizerItem* item = XRCSIZERITEM(*this, XRCID("area")); wxSizerItem* item = XRCSIZERITEM(*this, "area");
\end{verbatim} \end{verbatim}
\subsection{Adding new resource handlers}\label{newresourcehandlers} \subsection{Adding new resource handlers}\label{newresourcehandlers}

View File

@@ -326,10 +326,10 @@ private:
// <size>400, 300</size> // <size>400, 300</size>
// </object> // </object>
// //
// wxSizerItem* item = XRCSIZERITEM(*this, wxT("area")) // wxSizerItem* item = XRCSIZERITEM(*this, "area")
#define XRCSIZERITEM(window, id) \ #define XRCSIZERITEM(window, id) \
((window).GetSizer() ? (window).GetSizer()->GetItemById(id) : NULL) ((window).GetSizer() ? (window).GetSizer()->GetItemById(XRCID(id)) : NULL)
// wxXmlResourceHandler is an abstract base class for resource handlers // wxXmlResourceHandler is an abstract base class for resource handlers
// capable of creating a control from an XML node. // capable of creating a control from an XML node.