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. Resize window from left side

Resize window from left side

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelptutorial
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.
  • A Offline
    A Offline
    Atif Mushtaq
    wrote on last edited by
    #1

    Hi , i want to trim(srink) and expand windows from the left side , to give the sliding window effect(as one can find in winodws media player where sliding windows open up from both side on button clicks) , but the problem is it can easily be done from the right side, by changing the width attribute of window gradually ,as width attribute always change width from right side. but how to do this from left side so any body have any clue. Unmanaged in a .NET world

    R 1 Reply Last reply
    0
    • A Atif Mushtaq

      Hi , i want to trim(srink) and expand windows from the left side , to give the sliding window effect(as one can find in winodws media player where sliding windows open up from both side on button clicks) , but the problem is it can easily be done from the right side, by changing the width attribute of window gradually ,as width attribute always change width from right side. but how to do this from left side so any body have any clue. Unmanaged in a .NET world

      R Offline
      R Offline
      Robert A T Kaldy
      wrote on last edited by
      #2

      Use SetWindowPos: move the window to the left and increase his size simultaneously. Use SWP_NOCOPYBITS, SWP_NOREDRAW flags, this causes, that the client area won't be moved with the left border of the window. Robert-Antonio "CRAY is the only computer, which runs an endless loop in just 4 hours"

      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