Reputation: 1
I am using Visual Studio 2017 and I have created an MFC SDI Application with Direct2D for drawing. So I am listening to
ON_REGISTERED_MESSAGE(AFX_WM_DRAW2D, &CIGUIDEView::OnDraw2d)
messages for painting into the client area of the application. It all works fine, until I hit STRG-ALT-ENTF and return from the windows lock screen. Then the client area gets 'frozen', i.e. it is not refreshing. The application itself however is still responsive. When I set a breakpoint in
OnDraw2d(WPARAM wParam, LPARAM lParam){..}
Visual Studio breaks, so it is evident that all the drawing actually should happen. However, the application looks like this:
No graphics update in client area of MFC SDI application using Direct2D
Funny enough, this does ONLY happen when the mouse pointer is inside the client area while I hit STRG-ALT-ENTF. If it is outside, there is no problem.
Is this a bug or am I missing something?
Regards, Michael
Upvotes: 0
Views: 82