There is a technique in VFP that allows reaching the GETPRINTER dialog via the Timer control. Interestingly the Timer keeps ticking even behind the supposedly modal dialog. The Timer event thus can run some VFP code.
Such code easily identifies the window handle (HWND) of the dialog. Nothing fancy, the GetActiveWindow works just fine. Once the handle is known, various Win32 API Windowing functions can be called using it as the input parameter. In particular: GetWindowPos, SetWIndowPos, GetWindowText, SetWindowText.
The last function on that list does the trick -- sets the dialog caption to the desired one.
A working code sample can be found in the membership area of the website:
How to position the GETPRINTER() dialoghttp://www.news2news.com/vfp/?example=482The following line should be added to the SetPosition method in the code:
= SetWindowText(THIS.hDialog, 'User-defined dialog caption')
preceded by the declaration for the SetWindowText.