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. ATL / WTL / STL
  4. How to lock child window from resizing in MDI ?

How to lock child window from resizing in MDI ?

Scheduled Pinned Locked Moved ATL / WTL / STL
tutorialc++wpfcomquestion
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.
  • M Offline
    M Offline
    Mandalay
    wrote on last edited by
    #1

    How to lock child window from resizing in MDI ? I am using WTL + MDI/Dialog framework. - CMDIFrameWindowImpl --- CMDIChildWindowImpl ----- CDialogImpl i tried to set-up window styles (below) on creating... but child window then freezing :/ and i can do nothing with it (move/minimize) Style to setup for not-resizing window: ~WS_THICKFRAME; ~WS_MAXIMIZEBOX; i have example, but it built on Document/View technology... http://www.thecodeproject.com/dialog/resizeformtofit.asp ---------------------------- never stop coding.

    P 1 Reply Last reply
    0
    • M Mandalay

      How to lock child window from resizing in MDI ? I am using WTL + MDI/Dialog framework. - CMDIFrameWindowImpl --- CMDIChildWindowImpl ----- CDialogImpl i tried to set-up window styles (below) on creating... but child window then freezing :/ and i can do nothing with it (move/minimize) Style to setup for not-resizing window: ~WS_THICKFRAME; ~WS_MAXIMIZEBOX; i have example, but it built on Document/View technology... http://www.thecodeproject.com/dialog/resizeformtofit.asp ---------------------------- never stop coding.

      P Offline
      P Offline
      Pharago
      wrote on last edited by
      #2

      use the WM_NCCALCSIZE msg to set the dimensions of the dialog to the same min/max size, use it in the frame :| regards

      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