Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multiple monitor support for MFC application

Multiple monitor support for MFC application

Scheduled Pinned Locked Moved C / C++ / MFC
c++
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ashish Ranjan Mishra
    wrote on last edited by
    #1

    I want to open the child application form outside my parent form. I am using MDI application, The way the application currently opening a child form is pretty simple, straight out from the MFC library. AddDocTemplate( new CMultiDocTemplate( IDR_SCRIBTYPE, RUNTIME_CLASS( CScribDoc ), RUNTIME_CLASS( CMDIChildWnd ), RUNTIME_CLASS( CScribView ) ) ); Thanks, Ash

    asdasdadadasd

    A J A 3 Replies Last reply
    0
    • A Ashish Ranjan Mishra

      I want to open the child application form outside my parent form. I am using MDI application, The way the application currently opening a child form is pretty simple, straight out from the MFC library. AddDocTemplate( new CMultiDocTemplate( IDR_SCRIBTYPE, RUNTIME_CLASS( CScribDoc ), RUNTIME_CLASS( CMDIChildWnd ), RUNTIME_CLASS( CScribView ) ) ); Thanks, Ash

      asdasdadadasd

      A Offline
      A Offline
      Albert Holguin
      wrote on last edited by
      #2

      What's the question? There's nothing that resembles a question in there. Multiple monitor support is managed by the operating system, what exactly do you want to be able to do?

      A 1 Reply Last reply
      0
      • A Ashish Ranjan Mishra

        I want to open the child application form outside my parent form. I am using MDI application, The way the application currently opening a child form is pretty simple, straight out from the MFC library. AddDocTemplate( new CMultiDocTemplate( IDR_SCRIBTYPE, RUNTIME_CLASS( CScribDoc ), RUNTIME_CLASS( CMDIChildWnd ), RUNTIME_CLASS( CScribView ) ) ); Thanks, Ash

        asdasdadadasd

        J Offline
        J Offline
        JackDingler
        wrote on last edited by
        #3

        You can't do that with a CView derived class, without heavy modification of the MFC code. It's easier to create a non-CView window and write your own linkages to the document class to manage creation and destruction.

        A 1 Reply Last reply
        0
        • J JackDingler

          You can't do that with a CView derived class, without heavy modification of the MFC code. It's easier to create a non-CView window and write your own linkages to the document class to manage creation and destruction.

          A Offline
          A Offline
          Ashish Ranjan Mishra
          wrote on last edited by
          #4

          Sorry if I couldnot make you clear. Question is very simple, currently in our application we are not able to drag the child window outside the main frame window. If I move the main frame window my child window is also moving along with it. So I need to move my child window free out of main window Hope I make it more clear than earlier. Waiting for your reply.

          asdasdadadasd

          J 1 Reply Last reply
          0
          • A Albert Holguin

            What's the question? There's nothing that resembles a question in there. Multiple monitor support is managed by the operating system, what exactly do you want to be able to do?

            A Offline
            A Offline
            Ashish Ranjan Mishra
            wrote on last edited by
            #5

            Sorry if I couldnot make you clear. Question is very simple, currently in our application we are not able to drag the child window outside the main frame window. If I move the main frame window my child window is also moving along with it. So I need to move my child window free out of main window Hope I make it more clear than earlier. Waiting for your reply

            asdasdadadasd

            1 Reply Last reply
            0
            • A Ashish Ranjan Mishra

              Sorry if I couldnot make you clear. Question is very simple, currently in our application we are not able to drag the child window outside the main frame window. If I move the main frame window my child window is also moving along with it. So I need to move my child window free out of main window Hope I make it more clear than earlier. Waiting for your reply.

              asdasdadadasd

              J Offline
              J Offline
              JackDingler
              wrote on last edited by
              #6

              I understood you. MFC doesn't support what you're doing. You'll have to write that yourself. You might base this on the docking technology introduced in 2008/2010.

              1 Reply Last reply
              0
              • A Ashish Ranjan Mishra

                I want to open the child application form outside my parent form. I am using MDI application, The way the application currently opening a child form is pretty simple, straight out from the MFC library. AddDocTemplate( new CMultiDocTemplate( IDR_SCRIBTYPE, RUNTIME_CLASS( CScribDoc ), RUNTIME_CLASS( CMDIChildWnd ), RUNTIME_CLASS( CScribView ) ) ); Thanks, Ash

                asdasdadadasd

                A Offline
                A Offline
                Anu_Bala
                wrote on last edited by
                #7

                In MDI application we cannot move single window to another monitor. I think if you create view using SDI method,then you can move that particular view to next monitor.

                Anu

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups