Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to get RAS common dialog HWND?

Posted on 2000-03-28
9
Medium Priority
?
189 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
Suggested Courses

604 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