So I have a MFC application which flick when we do some action.
So I figured I would set SetRedraw(false)
and set it to true at the end of the function.
The application doesn't refresh anymore but if I click on it while SetRedraw(false)
, my cursor is not catched by my application, it goes throught it and set focus on the application below.
Anyone has some kind of idea how I could fix that.
I ended up using CWnd::LockWindowUpdate
instead after some research.
It freezes the update but doesn't act if the window was transparent.