windows - Prevent the entire screen from updating -


edit 1: actually, wanted avoid the flicker caused closing word document , opening one. looks approach not feasible.

greetings, possible prevent entire screen (not desktop) updating? question derived this one. want that, in word add-in, lock entire screen update when i'm closing word document , opening one, , re-enable update when i'm done.

an idea be:

  1. get image of entire screen (how?);
  2. show top-most window show screen image captured in step 1, cover entire screen;
  3. do job , close top-most window when done.

is possible? or have other better ideas? thanks!

to prevent screen updates:

sendmessage(getdesktopwindow, wm_setredraw, 0, 0); 

to re-enable screen updates:

sendmessage(getdesktopwindow, wm_setredraw, 1, 0); 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -