-------------------------------------------------
                         VFP 9.0 FIX - THE PRINTING WINDOW
                                 January 2019
                 -------------------------------------------------
                                     CCB



1. BUG:

     In vfp9 (and vfp6, vfp7, vfp8), it will ALWAYS show the Printing... window.

     The bug only occurs when set ReportBehavior 80, it does not occur when set ReportBehavior 90.


2. CAUSE:

     There are some BUGs in the following code.


3. RESOLUTION:

     We can write some code to fix the BUG.

     Label58237d ::


     ;
     ;                 -------------------------------------------------
     ;                         VFP 9.0 FIX - THE PRINTING WINDOW
     ;                                 October 2018
     ;                 -------------------------------------------------
     ;                                     CCB
     ;
     ; In vfp9, it will ALWAYS show the Printing... window.
     ; In VFP Advanced, it can show or hide the Printing... window.
     ;
     ; 2018/10/8, by ccb
     ;

             mov dword ptr vfpa_showprinting_isprinting,01h
             mov  ecx , dword ptr [eax]
             mov  ecx , dword ptr [ecx]
             mov  ecx , dword ptr [ecx]
             mov dword ptr vfpa_showprinting_hwnd,ecx


             push eax                                                        ;0x0058237d :        50
             call Fun48d8f6                                                  ;0x0058237e :        e873b5f0ff


     ;
     ;                 -------------------------------------------------
     ;                         VFP 9.0 FIX - THE PRINTING WINDOW
     ;                                 October 2018
     ;                 -------------------------------------------------
     ;                                     CCB
     ;
     ; In vfp9, it will ALWAYS show the Printing... window.
     ; In VFP Advanced, it can show or hide the Printing... window.
     ;
     ; 2018/10/8, by ccb
     ;

             mov dword ptr vfpa_showprinting_isprinting,00h
             mov dword ptr vfpa_showprinting_hwnd,00h


             jmp Label48d3df                                                 ;0x00582383 :        e957b0f0ff

     Now In VFP Advanced, it can show or hide the Printing... window.


4. APPLIES TO:

     VFP 6.0.8167.0
     VFP 6.0.8961.0 (SP5)

     VFP 7.0.0.9262
     VFP 7.0.0.9465 (SP1)

     VFP 8.0.0.2521
     VFP 8.0.0.3117 (SP1)

     VFP 9.0.0.2412
     VFP 9.0.0.3504 (SP1)
     VFP 9.0.0.4611 (SP2)
     VFP 9.0.0.5015 (SP2)
     VFP 9.0.0.5411 (SP2)
     VFP 9.0.0.5721 (SP2)
     VFP 9.0.0.5815 (SP2)
     VFP 9.0.0.6303 (SP2)
     VFP 9.0.0.6602 (SP2)
     VFP 9.0.0.7423 (SP2)

     The bug has been fixed in VFP Advanced.


5. REFERENCE WEBSITES:

     1, baiyujia.com:
     http://www.baiyujia.com
     http://www.baiyujia.com/vfpdocuments/f_vfp9fix48.asp

     2, foxite.com:
     https://www.foxite.com/archives/hide-the-vfp-report-progress-window-0000337759.htm

     3, tek-tips.com:
     https://www.tek-tips.com/viewthread.cfm?qid=1712123

     4, experts-exchange.com:
     https://www.experts-exchange.com/questions/26661702/Printing-Flags-in-Visual-Foxpro.html


6. OTHER:

     For reference only, there is no guarantees.

     Any questions or suggestions, please send me an email at ccb2000@163.com.