Various things related to wxFileDialog and attributes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-12-07 10:47:21 +00:00
parent 1fb4de3138
commit 9b00bb1626
5 changed files with 53 additions and 2 deletions

View File

@@ -2575,6 +2575,29 @@ wxListItem::wxListItem()
m_attr = NULL;
}
void wxListItem::Clear()
{
m_mask = 0;
m_itemId = 0;
m_col = 0;
m_state = 0;
m_stateMask = 0;
m_image = 0;
m_data = 0;
m_format = wxLIST_FORMAT_CENTRE;
m_width = 0;
m_text = wxEmptyString;
if (m_attr) delete m_attr;
m_attr = NULL;
}
void wxListItem::ClearAttributes()
{
if (m_attr) delete m_attr;
m_attr = NULL;
}
// -------------------------------------------------------------------------------------
// wxListEvent
// -------------------------------------------------------------------------------------