Effectivement, je n'avais pas fait attention à ça...
Merci 
Sinon, j'ai un autre probléme avec les timers, dans mon code, je met ça :
1 2 3
| BEGIN_EVENT_TABLE(MainWindow, wxFrame)
EVT_TIMER(Id_Repaint, MainWindow::OnTimer)
END_EVENT_TABLE() |
Mais Code::Blocks me donne une erreur la dessus :
invalid static_cast from 'void (MainWindow::*)(wxCommandEvent&)' to 'void (wxEvtHandler::*)(wxTimerEvent)'
Voila la fontion OnTimer :
1 2 3 4 5
|
void MainWindow::OnTimer(wxCommandEvent& WXUNUSED(event))
{
Opengl->RePaint();
} |
Ou est le probleme ?
Partager