Getting GUI code into a test harness

You've got some legacy C++ code to support. The GUI code has almost no unit tests, but it works. But now you need to change it. Maybe you need to add a new menu item, or change a generic message box into a custom dialog. For whatever reason, you need to change your GUI code. […]