#ifndef WXGRIDCELLFASTBOOLEDITOR_H #define WXGRIDCELLFASTBOOLEDITOR_H #include #include // From http://wiki.wxwidgets.org/WxGrid class wxGridCellFastBoolEditor : public wxGridCellBoolEditor { public: void BeginEdit (int row, int col, wxGrid* grid) { wxGridCellBoolEditor::BeginEdit(row, col, grid); wxFocusEvent event (wxEVT_KILL_FOCUS); if (m_control) { m_control->GetEventHandler()->AddPendingEvent(event); } } }; #endif