fixed two-step creation of wxCheckListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -286,10 +286,21 @@ wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id,
|
||||
long style, const wxValidator& val,
|
||||
const wxString& name)
|
||||
{
|
||||
Create(parent, id, pos, size, nStrings, choices,
|
||||
style | wxLB_OWNERDRAW, val, name);
|
||||
Create(parent, id, pos, size, nStrings, choices, style, val, name);
|
||||
}
|
||||
|
||||
bool wxCheckListBox::Create(wxWindow *parent, wxWindowID id,
|
||||
const wxPoint& pos, const wxSize& size,
|
||||
int n, const wxString choices[],
|
||||
long style,
|
||||
const wxValidator& validator, const wxString& name)
|
||||
{
|
||||
return wxListBox::Create(parent, id, pos, size, n, choices,
|
||||
style | wxLB_OWNERDRAW, validator, name);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void wxCheckListBox::Delete(int N)
|
||||
{
|
||||
wxCHECK_RET( N >= 0 && N < m_noItems,
|
||||
|
Reference in New Issue
Block a user