How to get RAS common dialog HWND?

I'm using the RasPhonebookDlg and I wan t to make it Always on top, therefore I need the HWND of that dialog. Any ideas?
michaliAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
nietodConnect With a Mentor Commented:
I see.  I wasn't familiar with that funcion.  I thought that was the name of some OTHER application, and you wanted to do something to its window.

I don't see any clean way to do this. An ugly way is to have a 2nd thread find the window and change it.    
0
 
nietodCommented:
Does the dialog have a constant title?  If so you could use FindWindow() to locate it?  (hopefully the title is sufficiently unique that it doesn't find anything else....)
0
 
michaliAuthor Commented:
the problem is that this dialog is modal dialog and therefore the message loop is waiting until this dialog is closed.
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
michaliAuthor Commented:
any other ideas?
0
 
nietodCommented:
nothing good.
0
 
michaliAuthor Commented:
any more ideas?
0
 
nietodCommented:
You didn't have to accept that if it didn't help you.  If you leave the question open for 31 days without activity it will be automatically deleted and the points will be refunded to you.
0
 
michaliAuthor Commented:
but it helped me. I use another thread that call to FindWindow and check the HWND of the dialog.
0
 
nietodCommented:
I'm not sure how I helped, but I'm glad I did.  :-)
0
All Courses

From novice to tech pro — start learning today.