0

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.

Ecnerwal
  • 362
  • 1
  • 2
  • 15
  • 1
    This question is lacking in all respects, and cannot be answered beyond a useless *"You are doing it wrong"* remark. Please read [How do I ask a good question?](http://stackoverflow.com/help/how-to-ask) and provide an [MCVE](http://stackoverflow.com/help/mcve). It doesn't look like you got yourself the *Informed* badge either, so you might want to consider taking the [Tour](http://stackoverflow.com/tour) as well. – IInspectable Feb 29 '16 at 17:08
  • 1
    I'll pass. Thanks anyway – Ecnerwal Feb 29 '16 at 17:46

1 Answers1

1

I ended up using CWnd::LockWindowUpdate instead after some research. It freezes the update but doesn't act if the window was transparent.

Ecnerwal
  • 362
  • 1
  • 2
  • 15