m_nIndex = (size_t)nIndex;
}
- HWND hWndListbox = (HWND)m_pParent->GetHWND();
- RECTL rUpdate;
- MRESULT mRc;
wxCommandEvent vEvent( wxEVT_COMMAND_CHECKLISTBOX_TOGGLED
,m_pParent->GetId()
);
} // end of wxCheckListBox::wxCheckListBox
+wxCheckListBox::wxCheckListBox (
+ wxWindow* pParent
+, wxWindowID vId
+, const wxPoint& rPos
+, const wxSize& rSize
+, const wxArrayString& asChoices
+, long lStyle
+, const wxValidator& rVal
+, const wxString& rsName
+)
+ : wxListBox()
+{
+ wxCArrayString chs(asChoices);
+ Create( pParent
+ ,vId
+ ,rPos
+ ,rSize
+ ,chs.GetCount()
+ ,chs.GetStrings()
+ ,lStyle | wxLB_OWNERDRAW
+ ,rVal
+ ,rsName
+ );
+} // end of wxCheckListBox::wxCheckListBox
+
void wxCheckListBox::Delete(
int N
)
wxKeyEvent& rEvent
)
{
- if (rEvent.KeyCode() == WXK_SPACE)
+ if (rEvent.GetKeyCode() == WXK_SPACE)
GetItem(GetSelection())->Toggle();
else
rEvent.Skip();
,&nParentHeight
);
vDc.SetFont(GetFont());
- vHeight = vDc.GetCharHeight() * 2.5;
+ vHeight = (wxCoord)(vDc.GetCharHeight() * 2.5);
//
// This, of course, will not work if the LB is scrolled