Cell cell, short dataOffset, short dataLength,
ListHandle listHandle )
{
+ wxListBox* list;
+ list = (wxListBox*) GetControlReference( (ControlHandle) GetListRefCon(listHandle) );
+ if ( list == NULL )
+ return ;
+
GrafPtr savePort;
GrafPtr grafPtr;
RgnHandle savedClipRegion;
SInt32 savedPenMode;
- wxListBox* list;
GetPort(&savePort);
SetPort((**listHandle).port);
grafPtr = (**listHandle).port ;
// typecast our refCon
- list = (wxListBox*) GetControlReference( (ControlHandle) GetListRefCon(listHandle) );
// Calculate the cell rect.
OptionBits options = 0;
if ( style & wxLB_MULTIPLE )
{
- options += lNoExtend ;
+ options += lExtendDrag + lUseSense ;
}
else if ( style & wxLB_EXTENDED )
{
- options += lExtendDrag ;
+ // default behaviour
}
else
{
wxListBox::~wxListBox()
{
FreeData() ;
+ // avoid access during destruction
+ SetControlReference( (ControlHandle) m_macControl , NULL ) ;
if ( m_macList )
{
#if !TARGET_CARBON
// TODO implement scrolling
}
-void wxListBox::OnSize( const wxSizeEvent &event)
+void wxListBox::OnSize( wxSizeEvent &event)
{
Point pt;