Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog Control - Windows

Status
Not open for further replies.

sweep123

Technical User
Joined
May 1, 2003
Messages
185
Location
GB
In a Visual Studio .Net MFC application I would like to be able to control/position each dialog and then switch to another application and have that take up part of the screen, say the bottom right corner (have my application 3/4 of the display area - using 3/4 dialog windows).

Is it possible to have several dialogs on display when the Main dialog window is minimised; i.e. have each dialog acting like a single dialog application.

Sweep
 
Yes, it is possible.


Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
OK how is it done.

Also, how do you close these Modeless Dialog windows when your application terminates; i.e. via the use of an Exit button on the main control dialog.

Sweep
 
You should use Win32API.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Start your search with the FindWindow() api call. This will allow you get a handle to the window that is not part of your app. With this handle you can send messages to this program. The message you would like to send is the WM_MOVE with the appropriate parameters.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top