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. Printing with multiple views

Printing with multiple views

Scheduled Pinned Locked Moved C / C++ / MFC
2 Posts 2 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.
  • B Offline
    B Offline
    Bert Tuyt
    wrote on last edited by
    #1

    I have a SDI application with multiple views. However I only implemented Printing Routines in 1 specific view. The other views only contain temporary information, which is not suited for printing. I can active the print commando via the menu or via a toolbar button. The handler (as i said before) is in the specific view routine. The problem I get is that sometimes this view looses focus, because i'am scrolling (for example) in another view. When I want to do some printing I find the menu and toolbar button greyed an inactive. Only after i activated or give focus back to my "most important" view, I can do my printing activity. I don't like this approach and hope someone has a straightforward solution, Thanks in advance, Bert....

    L 1 Reply Last reply
    0
    • B Bert Tuyt

      I have a SDI application with multiple views. However I only implemented Printing Routines in 1 specific view. The other views only contain temporary information, which is not suited for printing. I can active the print commando via the menu or via a toolbar button. The handler (as i said before) is in the specific view routine. The problem I get is that sometimes this view looses focus, because i'am scrolling (for example) in another view. When I want to do some printing I find the menu and toolbar button greyed an inactive. Only after i activated or give focus back to my "most important" view, I can do my printing activity. I don't like this approach and hope someone has a straightforward solution, Thanks in advance, Bert....

      L Offline
      L Offline
      lauren
      wrote on last edited by
      #2

      why dont you tie the message handling of the view to the mainframe instead of the view ... that way it always is available whatever view is visible ... then you just find the view window (from the doc template iterator) you want to print :)

      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