Solved

How to get RAS common dialog HWND?

Posted on 2000-03-28
9
183 Views
Last Modified: 2012-05-07
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
Comment
Question by:michali
  • 5
  • 4
9 Comments
 
LVL 22

Expert Comment

by:nietod
ID: 2664086
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
 

Author Comment

by:michali
ID: 2664910
the problem is that this dialog is modal dialog and therefore the message loop is waiting until this dialog is closed.
0
 
LVL 22

Accepted Solution

by:
nietod earned 100 total points
ID: 2665297
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
 

Author Comment

by:michali
ID: 2677813
any other ideas?
0
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.

 
LVL 22

Expert Comment

by:nietod
ID: 2677839
nothing good.
0
 

Author Comment

by:michali
ID: 2686988
any more ideas?
0
 
LVL 22

Expert Comment

by:nietod
ID: 2722472
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
 

Author Comment

by:michali
ID: 2722683
but it helped me. I use another thread that call to FindWindow and check the HWND of the dialog.
0
 
LVL 22

Expert Comment

by:nietod
ID: 2722699
I'm not sure how I helped, but I'm glad I did.  :-)
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

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
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…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

932 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

9 Experts available now in Live!

Get 1:1 Help Now