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. WM_GETMINMAXINFO

WM_GETMINMAXINFO

Scheduled Pinned Locked Moved C / C++ / MFC
cssquestion
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
    Maurizio Pisano
    wrote on last edited by
    #1

    I'm hooking another app and subclassing it. When I work with the WM_GETMINMAXINFO msg and set the MINMAXINFO data then return 0, my settings are overriden by the app if my ptMinTrackSize.x or ptMinTrackSize.y are less than what the app allows. Basically, what I'm asking is, how is the app setting the min and max window size if I'm overriding the WM_GETMINMAXINFO msg and returning 0?

    B 1 Reply Last reply
    0
    • M Maurizio Pisano

      I'm hooking another app and subclassing it. When I work with the WM_GETMINMAXINFO msg and set the MINMAXINFO data then return 0, my settings are overriden by the app if my ptMinTrackSize.x or ptMinTrackSize.y are less than what the app allows. Basically, what I'm asking is, how is the app setting the min and max window size if I'm overriding the WM_GETMINMAXINFO msg and returning 0?

      B Offline
      B Offline
      Brian Shifrin
      wrote on last edited by
      #2

      You should be able to shrink app to: Y = GetSystemMetrics(SM_CYCAPTION)+GetSystemMetrics(SM_CYDLGFRAME); X = n*GetSystemMetrics(SM_CYDLGFRAME); Boyond that requires patching OnNcCalcSize

      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