wxWidgets学习笔记:实现wxEVT_SIZE事件

wxEVT_SIZE

方式1

this->Connect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_BOARD_STATISTICS_BASE::windowSize ) );
this->Disconnect( wxEVT_SIZE, wxSizeEventHandler( DIALOG_BOARD_STATISTICS_BASE::windowSize ) );
m_hierarchy->Connect( wxEVT_SIZE,
                          wxSizeEventHandler( SCH_EDIT_FRAME::OnResizeHierarchyNavigator ),
                          NULL, this );

方式2

Bind( wxEVT_SIZE, &PCB_EDIT_FRAME::onSize, this );
 Unbind( wxEVT_SIZE, &PCB_EDIT_FRAME::onSize, this );

你可能感兴趣的:(学习,笔记)