Click here to Skip to main content
15,900,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI

I have one parent window and one child window dialogs in my application. the child window is fixed in one place and it's not moving, i want to make it movable. can any one help me?


Thanks In advance
Posted

This is not a particularly easy task unless you are using Visual Studio 2008 or 2010.

If you are using Visual Studio 2008, get a copy of the Feature Pack[^]. That has inbuilt support for exactly this. I think Visual Studio 2010 has this support by default, but I can't say for sure.
In order for anyone to be able to compile your solution they will also need the feature pack, if you are planning on sharing the code.

If you are using another version of Visual Studio, then there are plenty of articles here on The Code Project. Tab Controls And Splitters - Adding Some Dockable And Floating Sugar[^] for example.

As far as I know, they all require the Doc/View architecture of MFC to work. The ones that are from Microsoft do.
 
Share this answer
 
Hi

To make a dialog window movable, click on the dialog propeties there is a propety called style, make that style as overlapped. Now you can move your dialog.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900