Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I have an app I wrote in Visual C++ 2010 using MFC.
I am using some of the MFC Outlookbars in a window/frame to select items.

I would like to collapse the horizontally window when not needed and then be able to restore it again when needed.

Something similar to the Access 2013 Windows for selecting Tables, Queries, etc.

Any thoughts on a control with this functionality?

I have rolled my own with a button bar in the top of the window/frame, which does a resize on the window. But of course it is not very polished looking, LOL!

Thanks
Posted

1 solution

write some code to do it for you. It looks like animated if you change the size in an interval of 100 ms.

Step 1: get the coordinates and store them
Step 2: calculate the endposition
Step 3: Move the windows 1/10 of the difference
Step 4: youre done

If you wanna do some really fancy stuff: make a screenshot bitmap and manipulate it (over the buttons)
 
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