in windows 7 one feature is very good that when any apps is minimize and when user point mouse cursor on that minimize for then the image of that form is show in hover popup. so if i want to do it in my MDI form that when any SDI is minimize in MDI form and when user point mouse on that minimize form then the form image will show in hover popup. how to accomplish it in windows application through c#
Share
I have not tried this my self, but if I would think that the most likely solution for an MDI application would be to create the bitmap image of the child window prior to it being minimized and then use that image to show the last state of the window.
You will also need to handle a few of the ‘WM_NC*‘ messages to detect that the mouse is hovering over the minimized window and then render your cached image in a popup.
UPDATE:
Here is a quick and dirty proof of concept, it is not perfect the tooltip does not follow all the standard tooltip functionality etc. but it should be enough to get you started. The code could also be refactored to be more reusable, but at this stage you could derive your MDI child windows from this MDIChild and you would have this basic tooltip functionality. Of course there will be issues if windows are overlapping etc.
Here is the TooltipForm.designer.cs
And the TooltipForm.cs