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. Print Preview and "x"-Button

Print Preview and "x"-Button

Scheduled Pinned Locked Moved C / C++ / MFC
question
5 Posts 3 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
    AnTri
    wrote on last edited by
    #1

    Hey, how can I prevent closing my whole SDI-App when the "X"-button in PrintPreview is pressed. All works fine, when i push the close-botton (preview closes, and CView is shown) but not by presseing the "X"?

    M 1 Reply Last reply
    0
    • A AnTri

      Hey, how can I prevent closing my whole SDI-App when the "X"-button in PrintPreview is pressed. All works fine, when i push the close-botton (preview closes, and CView is shown) but not by presseing the "X"?

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      Obviously - don't click the "X" button :) Seriously, though, that "shouldn't" happen unless MFC thinks the window being closed is the application's "main window", as specified by the CWinThread::m_pMainWnd member... Mark

      Mark Salsbery Microsoft MVP - Visual C++ :java:

      L 1 Reply Last reply
      0
      • M Mark Salsbery

        Obviously - don't click the "X" button :) Seriously, though, that "shouldn't" happen unless MFC thinks the window being closed is the application's "main window", as specified by the CWinThread::m_pMainWnd member... Mark

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        L Offline
        L Offline
        led mike
        wrote on last edited by
        #3

        Hey Mark, did the forums list/links above the threads change today, the order/organization, or did I pick a bad day to stop smoking crack?

        led mike

        M 1 Reply Last reply
        0
        • L led mike

          Hey Mark, did the forums list/links above the threads change today, the order/organization, or did I pick a bad day to stop smoking crack?

          led mike

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          Both! Looks like some new boards as well (well, at least one new one). Mark

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          L 1 Reply Last reply
          0
          • M Mark Salsbery

            Both! Looks like some new boards as well (well, at least one new one). Mark

            Mark Salsbery Microsoft MVP - Visual C++ :java:

            L Offline
            L Offline
            led mike
            wrote on last edited by
            #5

            Mark Salsbery wrote:

            Both!

            Guess I should have gone fishing ;P

            led mike

            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