fix for late redraw messages in a already destroyed window hierarchy
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -69,16 +69,19 @@ static pascal void wxMacCheckListDefinition( short message, Boolean isSelected,
|
|||||||
Cell cell, short dataOffset, short dataLength,
|
Cell cell, short dataOffset, short dataLength,
|
||||||
ListHandle listHandle )
|
ListHandle listHandle )
|
||||||
{
|
{
|
||||||
|
wxCheckListBox* list;
|
||||||
|
list = (wxCheckListBox*) GetControlReference( (ControlHandle) GetListRefCon(listHandle) );
|
||||||
|
if ( list == NULL )
|
||||||
|
return ;
|
||||||
|
|
||||||
GrafPtr savePort;
|
GrafPtr savePort;
|
||||||
GrafPtr grafPtr;
|
GrafPtr grafPtr;
|
||||||
RgnHandle savedClipRegion;
|
RgnHandle savedClipRegion;
|
||||||
SInt32 savedPenMode;
|
SInt32 savedPenMode;
|
||||||
wxCheckListBox* list;
|
|
||||||
GetPort(&savePort);
|
GetPort(&savePort);
|
||||||
SetPort((**listHandle).port);
|
SetPort((**listHandle).port);
|
||||||
grafPtr = (**listHandle).port ;
|
grafPtr = (**listHandle).port ;
|
||||||
// typecast our refCon
|
// typecast our refCon
|
||||||
list = (wxCheckListBox*) GetControlReference( (ControlHandle) GetListRefCon(listHandle) );
|
|
||||||
|
|
||||||
// Calculate the cell rect.
|
// Calculate the cell rect.
|
||||||
|
|
||||||
|
@@ -69,16 +69,19 @@ static pascal void wxMacCheckListDefinition( short message, Boolean isSelected,
|
|||||||
Cell cell, short dataOffset, short dataLength,
|
Cell cell, short dataOffset, short dataLength,
|
||||||
ListHandle listHandle )
|
ListHandle listHandle )
|
||||||
{
|
{
|
||||||
|
wxCheckListBox* list;
|
||||||
|
list = (wxCheckListBox*) GetControlReference( (ControlHandle) GetListRefCon(listHandle) );
|
||||||
|
if ( list == NULL )
|
||||||
|
return ;
|
||||||
|
|
||||||
GrafPtr savePort;
|
GrafPtr savePort;
|
||||||
GrafPtr grafPtr;
|
GrafPtr grafPtr;
|
||||||
RgnHandle savedClipRegion;
|
RgnHandle savedClipRegion;
|
||||||
SInt32 savedPenMode;
|
SInt32 savedPenMode;
|
||||||
wxCheckListBox* list;
|
|
||||||
GetPort(&savePort);
|
GetPort(&savePort);
|
||||||
SetPort((**listHandle).port);
|
SetPort((**listHandle).port);
|
||||||
grafPtr = (**listHandle).port ;
|
grafPtr = (**listHandle).port ;
|
||||||
// typecast our refCon
|
// typecast our refCon
|
||||||
list = (wxCheckListBox*) GetControlReference( (ControlHandle) GetListRefCon(listHandle) );
|
|
||||||
|
|
||||||
// Calculate the cell rect.
|
// Calculate the cell rect.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user