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. Question about resizing views ?

Question about resizing views ?

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

    Hello, My question is about resizing a child window of a multi document /view application. If the view displays a big Bitmap and I try to resize it by dragging it with the mouse, the latter is very slow and shows border effects. So my idea is for example to mouse click on one of the side of the window and while I move the mouse, the window does not resize. Actually it will resize just after I release the mouse button. The new position will be where I released the mouse. Please note that it is just an idea and any suggestion is very welcome. I tried to find some articles before posting my question here but I was not successful. Please could you recommend me a solution or articles explaining how to solve this problem? I have no specific code to show. I just visited the functions OnCreate, OnInitialUpdate,Onsize, OnDraw and OnEraseBkgnd (this last fct is to avoid flickering). Many thanks for your answers.

    Steve EcholsS 1 Reply Last reply
    0
    • A Arris74

      Hello, My question is about resizing a child window of a multi document /view application. If the view displays a big Bitmap and I try to resize it by dragging it with the mouse, the latter is very slow and shows border effects. So my idea is for example to mouse click on one of the side of the window and while I move the mouse, the window does not resize. Actually it will resize just after I release the mouse button. The new position will be where I released the mouse. Please note that it is just an idea and any suggestion is very welcome. I tried to find some articles before posting my question here but I was not successful. Please could you recommend me a solution or articles explaining how to solve this problem? I have no specific code to show. I just visited the functions OnCreate, OnInitialUpdate,Onsize, OnDraw and OnEraseBkgnd (this last fct is to avoid flickering). Many thanks for your answers.

      Steve EcholsS Offline
      Steve EcholsS Offline
      Steve Echols
      wrote on last edited by
      #2

      I'd say you need to implement some kind of clipping so you're not drawing the whole bitmap each time, just the portion which is visible. How are you displaying your bitmap? BitBlt?


      - S 50 cups of coffee and you know it's on!

      • S
        50 cups of coffee and you know it's on!
        Code, follow, or get out of the way.
      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