Solved

No of files currently open

Posted on 2000-04-07
1
192 Views
Last Modified: 2010-04-10
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
Comment
Question by:Elmo_
1 Comment
 
LVL 1

Accepted Solution

by:
jbodom earned 25 total points
ID: 2695666
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now