|
-
Sep 3rd, 2001, 09:53 PM
#1
Thread Starter
PowerPoster
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
-
Sep 4th, 2001, 03:53 AM
#2
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.
-
Sep 4th, 2001, 08:21 AM
#3
Thread Starter
PowerPoster
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.
-
Sep 7th, 2001, 08:17 AM
#4
Thread Starter
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|