Original Post
Hello, I want to write an editor with DirectX 10 and wxWidgets. Since wxWidgets hides the WinMain() and the application loop I can't set up the traditional render loop by myself. I found this site ( http://wiki.wxwidgets.org/Making_a_render_loop ) where they propose 2 approaches to implement a render loop: 1) using the idle event or 2) timers. I don't like the timer approach so I tried their code for the idle event. If I run the little sample code I get a windows with a white panel and the string "Testing" is constantly rendered (at different positions) to the panel in method render(), which is called by the OnIdle Event method. But the big problem is: If I move or resize the window, the rendering totally stops! I added a little menu bar to the window and even when I open a menu (for example click on "File", then the rendering freezes! If I close the menu or stop moving/resizing the window the rendering is continued. Does anyone know how I can fix this so that it renders ALL THE TIME? Thanks!