Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

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?
0
michali
Asked:
michali
  • 5
  • 4
1 Solution
 
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
 
nietodCommented:
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
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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