• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 216
  • Last Modified:

No of files currently open

Does anyone know how to determine the number of occurences of a single MDI child form in Borland C++ Builder 3.0

Any help much appreciated.
0
Elmo_
Asked:
Elmo_
1 Solution
 
jbodomCommented:
The property MDIChildCount will give you the number of occurrences of children.  This is assuming that you've correctly made the parent form property FormStyle fsMDIForm.  Here's some example code that closes all the MDI children of Form1.

void __fastcall TForm1::Button1Click(TObject *Sender)

{
  for(int i = 0; i < MDIChildCount; i++)
    MDIChildren[i]->Close();
}
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now