changed return type of wxCommandEvent::GetClientObject() to wxClientData * from void * and documented it (patch 918655)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2004-04-15 23:10:08 +00:00
parent 5c9f6bf455
commit 88eadcf218
2 changed files with 17 additions and 1 deletions

View File

@ -137,6 +137,13 @@ Deprecated, use \helpref{IsChecked}{wxcommandeventischecked} instead.
Returns client data pointer for a listbox or choice selection event
(not valid for a deselection).
\membersection{wxCommandEvent::GetClientObject}
\func{wxClientData *}{GetClientObject}{\void}
Returns client object pointer for a listbox or choice selection event
(not valid for a deselection).
\membersection{wxCommandEvent::GetExtraLong}
\func{long}{GetExtraLong}{\void}
@ -186,6 +193,15 @@ is a deselection.
Sets the client data for this event.
\membersection{wxCommandEvent::SetClientObject}
\func{void}{SetClientObject}{\param{wxClientData*}{ clientObject}}
Sets the client object for this event. The client object is \emph{not} owned by the event
object and the event object will not delete the client object in its destructor.
The client object must be owned and deleted by another object (e.g. a control)
that has longer life time than the event object.
\membersection{wxCommandEvent::SetExtraLong}
\func{void}{SetExtraLong}{\param{int}{ extraLong}}

View File

@ -502,7 +502,7 @@ public:
// Set/Get client object from controls
void SetClientObject(wxClientData* clientObject) { m_clientObject = clientObject; }
void *GetClientObject() const { return m_clientObject; }
wxClientData *GetClientObject() const { return m_clientObject; }
// Get listbox selection if single-choice
int GetSelection() const { return m_commandInt; }