Announcement

Collapse
No announcement yet.

SW_Maximized

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

  • SW_Maximized

    I thought %SW_Maximize would maximize the browser that this opens, but it does not. Nor does %SW_ShowMaximized.

    Code:
    #Include "win32api.inc"
    Function PBMain() As Long
       Local iReturn As Long
       iReturn = ShellExecute(%Null, "Open", "http://www.google.com", $Nul, $Nul, %SW_Maximize)
    End Function
    I've found other places I've used this code but on retesting, none of them maximize the browser.

    Am I forgetting something simple?

  • #2
    It's up to your browser to decide whether to accept that flag.
    "The flags that specify how an application is to be displayed when it is opened. If lpFile specifies a document file, the flag is simply passed to the associated application. It is up to the application to decide how to handle it."

    Comment


    • #3
      Howdy, Stuart!

      Thanks for pointing that out. I missed it when reading the page on ShellExecute.

      Comment


      • #4
        Just ask yourself, Gary:

        Do your applications look for and honor any "display" information passed when your applications programs start up?

        Neither do a lot of programs!
        Michael Mattias
        Tal Systems (retired)
        Port Washington WI USA
        [email protected]
        http://www.talsystems.com

        Comment

        Working...
        X