How to test without Windows Themes

In VFP, there are a bunch of ways to turn off XP Themes. One of them is to select the EXE’s Properties in Windows Explorer and turn them off there. A while back, I needed to write a test that would verify this actually worked, but I didn’t want to figure out how to click that option in Explorer. After searching MSDN, I came up with the following.

*!* We can turn Disable Visual Themes on with a batch
*!* file: we don't need to set the property in Windows
*!* Explorer.

TEXT TO lcBat NOSHOW
 set __COMPAT_LAYER=DisableThemes
 ThemeForm.exe
ENDTEXT
STRTOFILE(lcBat, "ThemeForm.bat")

*!* Run the program
RUN /n ThemeForm.bat

There’s More Than One Way To Skin A Fox(tm). :-)

Posted by Garrett on May 24th, 2004 in Uncategorized | No Comments

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment