Главная страница | назад





Article #17177: Find a window in Builder

 Question and Answer Database
FAQ2177C.txt Find a window in Builder
Category :IDE
Platform :Win95/NT
Product : C++Builder1.0 C++Builder3.x
Question:
How can I tell if C++ Builder is running?
Answer:
Use this example for finding a Window. Note
that the main C++ Builder class name is TAppBuilder;
void __fastcall TForm1::Button1Click(TObject *Sender)
{
if (FindWindow("TAppBuilder", NULL) != 0)
ShowMessage("C++ Builder is running");
}
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99