DHillard
December 1st, 2006, 08:43 AM
I have created a custom control (chart control) that responds to a double-click by making itself "blowup" to full-screen. I am doing this by getting and saving its current location and size on its parent window, then changing the parent window to the desktop, then doing a MoveWindow() for the control to the size of the desktop.
Another double-click changes the owner from the desktop, back to its original owner and places it back into position as it was before going full-screen.
This is all working fine, but I noticed something looking strange.
While the control is shown full-screen, if I alt-TAB to show the application that originally hosted the control, of course the contol no longer shows on that window, because its owner now is the desktop, and that's where it's displayed.
I guess ideally, the control would be copied somehow so the same control could be displayed in two different places, but I have a feeling this is not possible.
So, that brings me back to the original problem, or my interpretation of it being a problem, which is "Is this how this should work from a UI standpoint?" Normally, one wouldn't alt-tab back to the application while showing the control full-screen, but it is possible.
Has anyone seen this functionality before in an application?
Am I approaching this the wrong way?
Anyone have any ideas on this?
Thanks.
Another double-click changes the owner from the desktop, back to its original owner and places it back into position as it was before going full-screen.
This is all working fine, but I noticed something looking strange.
While the control is shown full-screen, if I alt-TAB to show the application that originally hosted the control, of course the contol no longer shows on that window, because its owner now is the desktop, and that's where it's displayed.
I guess ideally, the control would be copied somehow so the same control could be displayed in two different places, but I have a feeling this is not possible.
So, that brings me back to the original problem, or my interpretation of it being a problem, which is "Is this how this should work from a UI standpoint?" Normally, one wouldn't alt-tab back to the application while showing the control full-screen, but it is possible.
Has anyone seen this functionality before in an application?
Am I approaching this the wrong way?
Anyone have any ideas on this?
Thanks.