How do I refresh correctly my HighGUI application ?
You need to call periodically cvWaitKey(). This is the only method in HighGUI to fetch and handle events so it needs to be called periodically for normal event processing, unless HighGUI is used within some environment that takes care of event processing.