Solved

How to get RAS common dialog HWND?

Posted on 2000-03-28
9
182 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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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.
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.

747 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

12 Experts available now in Live!

Get 1:1 Help Now