Results 1 to 4 of 4

Thread: Minimize out of process window

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    Minimize out of process window

    PROBLEM: Minimize an out of process main form prior to it showing.

    I'm using a third party OCX. The OCX calls the vendors program
    which starts and displays its main form. I currently intercept the program using the following code which minimizes the main form but AFTER it displays.

    'Start Conrol
    ck = X.Start

    'Use the Class Name to Minimize
    hwnd = FindWindow("XYZ", vbNullString)

    'Minimize Window
    Dummy = CloseWindow(hwnd)

    Thanks
    David

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    Maybe you can tell the OCX that you want MINIMIZE passed as parameter to ShowWindow.
    Read the documentation (if there is one), it should tell you if it is possible.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    CornedBee:

    Thanks for the thought.

    Have the doc, even talked to the OCX development staff. No luck through -- the company won't modify. That's why I'm looking for a workaround.

  4. #4

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    bump

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width