detect when in a child custom control when the parent form is minimized/maximized 
Author Message
 detect when in a child custom control when the parent form is minimized/maximized

Hello,

I am developing a UserControl in vb6 sp5  that is wrapped in C++ , and then
used in Centura Developer 1.5.1 ptf6 (a Vb like 4GL).

For some reason the UserControl Should detect when the parent window of
Centura is minimized/maximized .

I can loop a GetParent-Apifunction to get the  parent window . But wich
function should I use to check the windowstate ? Or are is there a another
possibility to check this , without going to the parent window ?

Hoping To hear from you,

Filip W.



Tue, 30 Nov 2004 04:08:31 GMT  
 detect when in a child custom control when the parent form is minimized/maximized
Assuming you have the right window handle (don't know much about this
"Centura" thing to be honest), there's an API called IsIconic() that will
tell you of a window is minimized.

. . . . . . . . . . . . . . . . . . . . . .
Klaus H. Probst, MVP
   http://www.vbbox.com/

Please post/reply to the newsgroup(s)


Quote:
> Hello,

> I am developing a UserControl in vb6 sp5  that is wrapped in C++ , and
then
> used in Centura Developer 1.5.1 ptf6 (a Vb like 4GL).

> For some reason the UserControl Should detect when the parent window of
> Centura is minimized/maximized .

> I can loop a GetParent-Apifunction to get the  parent window . But wich
> function should I use to check the windowstate ? Or are is there a another
> possibility to check this , without going to the parent window ?

> Hoping To hear from you,

> Filip W.



Wed, 01 Dec 2004 11:42:16 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. detect when in a child custom control when the parent form is minimized/maximized

2. Maximized MDI child form Covering Status bar on MDI parent

3. maximize child form display multiple tool box controls on main form

4. Accessing Custom Properties in Forms -- Parent and Child ?

5. Minimize a form when minimizing a child of it

6. Save form settings while form is minimized / maximized

7. MSHFlexGrid format child side in parent child form

8. Accessing Parent control from children form

9. Accessing Parent control from children form

10. Accessing Parent control from children form

11. Building custom controls with no presence on their parent form

12. MDI Form and minimized Child Forms

 

 
Powered by phpBB® Forum Software