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. Resizing frame

Resizing frame

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

    Hello everybody, i got a strange problem. If i resize a frame (within a CFormView) all works great. Till i replace the View with another one (the frame keeps) All Size-Events are correctly send to the new active view. But if I size the frame fast, the view will (sometimes) not get the newest Size-Event. Then, a ugly mistake like this is provoked : http://img5.imageshack.us/my.php?image=fehleruu2.jpg[^] I tested this view already as a initial view (without changing the view into the frame ) in this case it works also without mistakes. Only if I replace the initial view with another one, then the second view resizes not correctly. Also i tested if the initial view is also resized (so that wrongly 2 views are sized) but i use a Hidden-Flag to step out the OnSize-Function (but the Size-Event is send anyway to it :( ) Big thanks for help :)

    S 1 Reply Last reply
    0
    • B baerten

      Hello everybody, i got a strange problem. If i resize a frame (within a CFormView) all works great. Till i replace the View with another one (the frame keeps) All Size-Events are correctly send to the new active view. But if I size the frame fast, the view will (sometimes) not get the newest Size-Event. Then, a ugly mistake like this is provoked : http://img5.imageshack.us/my.php?image=fehleruu2.jpg[^] I tested this view already as a initial view (without changing the view into the frame ) in this case it works also without mistakes. Only if I replace the initial view with another one, then the second view resizes not correctly. Also i tested if the initial view is also resized (so that wrongly 2 views are sized) but i use a Hidden-Flag to step out the OnSize-Function (but the Size-Event is send anyway to it :( ) Big thanks for help :)

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      How about handling WM_EXITSIZEMOVE[^] rather than/as well as WM_SIZE?

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      B 1 Reply Last reply
      0
      • S Stuart Dootson

        How about handling WM_EXITSIZEMOVE[^] rather than/as well as WM_SIZE?

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        B Offline
        B Offline
        baerten
        wrote on last edited by
        #3

        Yes, it's a last possibility to "resolve" it, but if the user holds down the Mouse-Key (for example to continue the sizing) it seems pretty ugly :doh: But thanks for your answer :)

        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