I have a macro that executes "Edit.ToggleOutliningExpansion" many times. Is there a way to suppress the redrawing of the page until
the macro is completed? "DTE.SuppressUI" does not help.
Hi Jon,
> I have a macro that executes "Edit.ToggleOutliningExpansion" many times.
Is there a way to suppress the redrawing of the page until the macro is
completed?
It appears no such a method in the DTE methods, maybe you can try the Win32
API: LockWindowUpdate to suppress the update of the "VsTextEditPane" window
during the execution of your Macro.
However it has some difficulties to get the handle of that "VsTextEditPane"
window, you have to use the FindWindow and FindWindowEx to dig it out.
Thanks!
Best regards,
Gary Chang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------