Announcement

Collapse
No announcement yet.

Refresh a window

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Refresh a window

    Anyone have a routine to refresh a Window?
    I'm shelling from a DOS program to a Windows
    program and when the DOS program is in full screen mode the window
    of the PB/DLL program doesn't display page 1
    correctly unless it is clicked on.



    ------------------

  • #2
    Mike you emailed me about WINLINK (as supplied with DOSPRINT), but did not go into details about what app's are involved... does this not work correctly for you in this circumstance?

    That is, WINLINK.EXE can be used to launch any Windows app.

    What is the Windows app, and is the Windows app getting focus?

    If it does not get focus, it could be that the app you are launching is in turn creating a new separate (child) Process. With Win98/ME/2K, Processes that do not own the foreground cannot easily take control of the foreground.

    Could that be the problem?

    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected][email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Update... Mike emailed me to say WINLINK solved the problems fine!



      ------------------
      Lance
      PowerBASIC Support
      mailto:[email protected][email protected]</A>
      Lance
      mailto:[email protected]

      Comment


      • #4
        They are related. The 32-bit program (shelled to)is
        my PB/DLL program named "WinPrint" which uses the DDOC
        print engine. WinLink pulls the DOS program shelling
        to WinPrint back correctly in all screen modes.

        If a MSGBOX is performed for example before the
        Windows program displays page 1, the first page
        is displayed correctly. I've tried a splashbox and
        the area under is displayed in the Windows program.
        Also tried placing sleep statements before and after
        displaying the first page of the Windows program and
        it doesn't help. Anyway, trying to display something
        in WinPrint or refreshing the screen may refresh page 1.
        I don't have the window handle, yet.


        ------------------


        ------------------

        Comment


        • #5
          BTW, WINPRINT is a trademarked name... I originally wanted to call DOSPRINT by that name, but it is not "freely available".

          Hmmm... your email to me suggested that WINLINK was the answer to the problems, or was I reading too much into that brief email?

          We'd really need to know a lot more about the internals of the apps to go further.

          ------------------
          Lance
          PowerBASIC Support
          mailto:[email protected][email protected]</A>
          Lance
          mailto:[email protected]

          Comment


          • #6
            I've renamed WinPrint and contacted Don D. about this.

            ------------------

            Comment

            Working...
            X