Board index » cppbuilder » Getting handle to an MDI Window
Paul
![]() CBuilder Developer |
Paul
![]() CBuilder Developer |
Getting handle to an MDI Window2007-11-15 11:34:18 PM cppbuilder36 I hope this is the correct group I have an MDI app and I need to interact with a Componnet on one of the child windows - how do I get a handle to the active window - and for that matter for any of the windows that are on screen? |
Dennis Jones
![]() CBuilder Developer |
2007-11-15 11:44:42 PM
Re:Getting handle to an MDI Window
"Paul" < XXXX@XXXXX.COM >wrote in message
QuoteI hope this is the correct group Once you have the TForm, you can use its "Handle" property to get the window handle. For instance: ActiveMDIChild->Handle ...should give you the handle to the currently active child window. - Dennis |
Remy Lebeau (TeamB)
![]() CBuilder Developer |
2007-11-16 01:25:39 AM
Re:Getting handle to an MDI Window
"Dennis Jones" < XXXX@XXXXX.COM >wrote in message
QuoteAssuming you are using VCL, the main form has a property called, instead, such as the TWinControl::Controls[] array, and using type-casting or RTTI to access the desired properties. Gambit {smallsort} |