Multi touch - Limit CView boudaries when panning
-
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.
-
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.
Dansveen wrote:
I don't know how to get frame size
The
GetClientRect()
[^] andGetWindowRect()
[^] functions may be what you need.One of these days I'm going to think of a really clever signature.
-
Dansveen wrote:
I don't know how to get frame size
The
GetClientRect()
[^] andGetWindowRect()
[^] functions may be what you need.One of these days I'm going to think of a really clever signature.
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.
-
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.
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.