Link to home
Start Free TrialLog in
Avatar of LBoorn
LBoorn

asked on

Check To See If Popup Dialog Exists

I am developing an SDI application on Windows NT 4.0 using Visual Studio 6.0, Visual C++.   In this application the Child form calls and creates Modeless Popup Dialog Windows.  I need to check and see if the window exists before I try to Create it again.  The reason for this is that the Child form can call several windows and they will stack up.  If the window does exist I need to move it to the top of the stack of windows.  
Avatar of MadYugoslav
MadYugoslav
Flag of Serbia image

Try to use FindWindow() function to find if that window exist.
ASKER CERTIFIED SOLUTION
Avatar of nrajan
nrajan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nrajan
nrajan

Sorry small code bug. The line should be

if( !m_pDlg)
{


Agree with nrajan.
That is aproach that I use every time on this problem.
But I suggest to solve posted problem (question) not the better (or best) solution on problem.