You can capture the current appearance of a control using GetCtrlDisplayBitmap(), then save it to a file using either SaveBitmapToJPEGFile() or SaveBitmapToBMPFile(). Remember to call DiscardBitmap() when you are done.
All of these functions are in the User Interface library.