Previous projects I have developed using gapidraw were partly based on the samples that come with the SDK and were using MFC based classes to create the main application window. In an attempt to make things somehow cleaner in my latest project I decided to ditch the mfc classes like CMainFrame and such and create my own window manually using plain CreateWindowEx. However, now when my application exits, the right lower part of the today screen isn't properly restored. You have to manually click on the button that is on the right of the lower bar of the today screen to have it redrawn correctly again. So I guess I'm doing something wrong when exiting my app, but I'm not sure what. What I'm doing when exiting the app is this:
first, delete the CGapiDisplay object
then, call SHFullScreen(m_hWndMain , SHFS_SHOWSTARTICON |SHFS_SHOWTASKBAR | SHFS_SHOWSIPBUTTON);
then, call DestroyWindow (m_hWndMain)
So, what am I missing here?