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:
- get image of entire screen (how?);
- show top-most window show screen image captured in step 1, cover entire screen;
- 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
Post a Comment