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. fixed window as in VB

fixed window as in VB

Scheduled Pinned Locked Moved C / C++ / MFC
3 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.
  • S Offline
    S Offline
    slah
    wrote on last edited by
    #1

    HI I have created a window with CreateWindowEx and with toolbar style i want it to be fixed so that it cannot be resized. is there any special parameter to pass to make it fixed. PLZ do share the knowledge

    M 1 Reply Last reply
    0
    • S slah

      HI I have created a window with CreateWindowEx and with toolbar style i want it to be fixed so that it cannot be resized. is there any special parameter to pass to make it fixed. PLZ do share the knowledge

      M Offline
      M Offline
      Mike Nordell
      wrote on last edited by
      #2

      If you don't want it sizeable, don't add the flags to make it sizeable - it's all in the documentation. If you for some reason want a thick border (or sizebox, both are the same and both implies sizeable) but still want to prohibit the user from resizing the window (for whatever, malicious or not, reason), override the handling of WM_NCCALCSIZE. It's spelled "Please", not PLZ.

      S 1 Reply Last reply
      0
      • M Mike Nordell

        If you don't want it sizeable, don't add the flags to make it sizeable - it's all in the documentation. If you for some reason want a thick border (or sizebox, both are the same and both implies sizeable) but still want to prohibit the user from resizing the window (for whatever, malicious or not, reason), override the handling of WM_NCCALCSIZE. It's spelled "Please", not PLZ.

        S Offline
        S Offline
        slah
        wrote on last edited by
        #3

        thanks for ur consideration. i have find flags but could not find any if u know any let me know too.

        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