[GME-commit]
GMESRC/GME/Gme GMEView.h,1.55,1.56 GMEView.cpp,1.138,1.139
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Wed May 5 14:32:45 CDT 2004
Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv31477
Modified Files:
GMEView.h GMEView.cpp
Log Message:
Panning window's frame movable
CVS User: bogyom
Index: GMEView.h
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEView.h,v
retrieving revision 1.55
retrieving revision 1.56
diff -C2 -d -r1.55 -r1.56
*** GMEView.h 25 Mar 2004 16:44:33 -0000 1.55
--- GMEView.h 5 May 2004 18:32:42 -0000 1.56
***************
*** 381,384 ****
--- 381,385 ----
afx_msg void OnPrintMetafile();
afx_msg LRESULT OnZoom(WPARAM wParam, LPARAM lParam);
+ afx_msg LRESULT OnPannScroll(WPARAM wParam, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
Index: GMEView.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEView.cpp,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** GMEView.cpp 30 Mar 2004 19:57:30 -0000 1.138
--- GMEView.cpp 5 May 2004 18:32:42 -0000 1.139
***************
*** 382,385 ****
--- 382,386 ----
ON_COMMAND(ID_FILE_PRINT_PREVIEW, CScrollZoomView::OnFilePrintPreview)
ON_MESSAGE(WM_USER_ZOOM, OnZoom)
+ ON_MESSAGE(WM_PANN_SCROLL, OnPannScroll)
END_MESSAGE_MAP()
***************
*** 6004,6005 ****
--- 6005,6019 ----
return 0;
}
+
+ LRESULT CGMEView::OnPannScroll(WPARAM wParam, LPARAM lParam)
+ {
+ CGMEEventLogger::LogGMEEvent("CGMEView::OnPannScroll() in "+path+name+"\r\n");
+ int relx = (DWORD)wParam;
+ int rely = (DWORD)lParam;
+ CPoint current = GetScrollPosition(); // upper corner of scrolling
+ current.x += relx;
+ current.y += rely;
+ ScrollToPosition(current); // set upper left position
+ Invalidate();
+ return 0;
+ }
\ No newline at end of file
More information about the GME-commit
mailing list