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. Multi touch - Limit CView boudaries when panning

Multi touch - Limit CView boudaries when panning

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialvisual-studiocomhelp
4 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.
  • D Offline
    D Offline
    Dansveen
    wrote on last edited by
    #1

    Hi All I implemented a multi touch application. I follow MSDN tutorial using manipulation interface, here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd371408(v=vs.85).aspx[^] But I have many problems when panning or zooming, is not redrawing and glitches in scrren. I need to limit my CView and do panning when screen is bigger than CFrameWnd, because CFramewnd does not redraw. I don't know how to get frame size and limit CView to don't pass CFrameWnd size. I tried an anchor or dock window but did not work. Please, I need any help. Thank you.

    L 1 Reply Last reply
    0
    • D Dansveen

      Hi All I implemented a multi touch application. I follow MSDN tutorial using manipulation interface, here: http://msdn.microsoft.com/en-us/library/windows/desktop/dd371408(v=vs.85).aspx[^] But I have many problems when panning or zooming, is not redrawing and glitches in scrren. I need to limit my CView and do panning when screen is bigger than CFrameWnd, because CFramewnd does not redraw. I don't know how to get frame size and limit CView to don't pass CFrameWnd size. I tried an anchor or dock window but did not work. Please, I need any help. Thank you.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Dansveen wrote:

      I don't know how to get frame size

      The GetClientRect()[^] and GetWindowRect()[^] functions may be what you need.

      One of these days I'm going to think of a really clever signature.

      D 1 Reply Last reply
      0
      • L Lost User

        Dansveen wrote:

        I don't know how to get frame size

        The GetClientRect()[^] and GetWindowRect()[^] functions may be what you need.

        One of these days I'm going to think of a really clever signature.

        D Offline
        D Offline
        Dansveen
        wrote on last edited by
        #3

        Ok I'm using GetWindowRect like MSDN example. But I have problems when panning. I have a CView with same size as CFrameWnd, if I move the screen beyond origin the screen does not redraw. What I need is do a panning only if my CVIew is bigger than my parent frame, and don't if Cview is in origin. I tried getting screen limits but does not work. Example: ________________ --->CFrameWnd - Glitches and does not redraw | | | ___________|____ ---> CView - out of screen origin | | | | | | | | | | | | | | | |__|_______________| Thank you.

        L 1 Reply Last reply
        0
        • D Dansveen

          Ok I'm using GetWindowRect like MSDN example. But I have problems when panning. I have a CView with same size as CFrameWnd, if I move the screen beyond origin the screen does not redraw. What I need is do a panning only if my CVIew is bigger than my parent frame, and don't if Cview is in origin. I tried getting screen limits but does not work. Example: ________________ --->CFrameWnd - Glitches and does not redraw | | | ___________|____ ---> CView - out of screen origin | | | | | | | | | | | | | | | |__|_______________| Thank you.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Dansveen wrote:

          I tried getting screen limits but does not work.

          I'm afraid that really does not tell us anything. Please show an extract of your code and try to explain exactly what results you are seeing and what you expect to happen.

          One of these days I'm going to think of a really clever signature.

          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