Browse Source

save window sizes per screen resolution

git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@819 595ec19a-5cb4-439b-94a8-42fb3063c22c
sabrogden 10 years ago
parent
commit
6f57183bbc
2 changed files with 7 additions and 0 deletions
  1. 6 0
      MainFrm.cpp
  2. 1 0
      MainFrm.h

+ 6 - 0
MainFrm.cpp

@@ -69,6 +69,7 @@ IMPLEMENT_DYNAMIC(CMainFrame, CFrameWnd)
 	ON_MESSAGE(WM_SHOW_MSG_WINDOW, &CMainFrame::OnShowMsgWindow)
 	ON_MESSAGE(WM_SHOW_DITTO_GROUP, &CMainFrame::OnShowDittoGroup)
 	ON_COMMAND(ID_FIRST_FIXUPSTICKYCLIPORDER, &CMainFrame::OnFirstFixupstickycliporder)
+	ON_MESSAGE(WM_DISPLAYCHANGE, &CMainFrame::OnResolutionChange)
 	END_MESSAGE_MAP()
 
 	static UINT indicators[] = 
@@ -1298,3 +1299,8 @@ void CMainFrame::OnFirstFixupstickycliporder()
 {
 	ReOrderStickyClips(-1, theApp.m_db);
 }
+
+LRESULT CMainFrame::OnResolutionChange(WPARAM wParam, LPARAM lParam)
+{
+	return TRUE;
+}

+ 1 - 0
MainFrm.h

@@ -132,4 +132,5 @@ DECLARE_MESSAGE_MAP()public:
 	afx_msg LRESULT OnShowMsgWindow(WPARAM wParam, LPARAM lParam);
 	afx_msg LRESULT OnShowDittoGroup(WPARAM wParam, LPARAM lParam);
 	afx_msg void OnFirstFixupstickycliporder();
+	afx_msg LRESULT OnResolutionChange(WPARAM wParam, LPARAM lParam);
 };