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. controlling window size during Cascade

controlling window size during Cascade

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
1 Posts 1 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.
  • M Offline
    M Offline
    moredip
    wrote on last edited by
    #1

    Hi all, I'm trying to figure out how to control the size of a CView-derived window during a cascade operation (i.e. when the Cascade menu item in the View menu of a MFC-based MDI app is selected). I've looked into having my CView override various message handlers( WM_WINDOWPOSCHANGING, WM_GETMINMAXINFO, WM_NCCALCSIZE, and WM_WINDOWPOSCHANGED), but none of those messages seem to contain enough information for my CView to know whether it is being cascaded, or just resized in another way( maximized, restored, resized by the user, etc.). Do I need to look into overriding the way an MFC app handles the Cascade command, and if so where would I start on that? Any advice or suggestions greatly appreciated. Cheers, Pete

    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