Discussion:
Drag to second monitor
(too old to reply)
osd
2011-12-27 16:30:48 UTC
Permalink
Hello

My MFC multidocument program makes several kinds of windows. Those create
wit
the CMultiDocTemplate cannot be dragged out of the main frame onto a secon
monitor. Those created with new [dialog name] can

I want them all to be dragged anywhere. What should I change? Is it a window
style somewhere?
ScottMcP [MVP]
2011-12-27 20:47:11 UTC
Permalink
Hello,
 My MFC multidocument program makes several kinds of windows.  Those created
with
 the CMultiDocTemplate cannot be dragged out of the main frame onto a second
 monitor.  Those created with new [dialog name] can.
 I want them all to be dragged anywhere.  What should I change? Is it a windows
 style somewhere?
The MDI windows are child windows, which means they stay within the
parent. If you want to be able to drag them to a second monitor you
will have to first enlarge the mainframe window so it covers the
entire area you wish to be able to drag around in.

Or, create windows using CWnd::Create instead of using the multidoc
framework.

Loading...