Solved

How to get RAS common dialog HWND?

Posted on 2000-03-28
9
187 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 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
Independent Software Vendors: 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

Technology Partners: 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!

Question has a verified solution.

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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

724 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