diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-08 20:30:58 +0200 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-08 20:30:58 +0200 |
commit | b094ac395c83d47d2d28f80d509ec9386c3b0ece (patch) | |
tree | 260b79b0ed2cc0c218ba4d06e47bd52399ea21b5 /plugins/CrashDumper/src/ui.cpp | |
parent | 1e857963fa96c1e2131fa799d8580c526f175cee (diff) |
fixes #1736 (CrashDumper: "Use classic dates" options should not depend on "Generate crash reports")
Diffstat (limited to 'plugins/CrashDumper/src/ui.cpp')
-rw-r--r-- | plugins/CrashDumper/src/ui.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/plugins/CrashDumper/src/ui.cpp b/plugins/CrashDumper/src/ui.cpp index 53e2ffa2e8..801e2509d9 100644 --- a/plugins/CrashDumper/src/ui.cpp +++ b/plugins/CrashDumper/src/ui.cpp @@ -25,42 +25,6 @@ class CViewVersionInfo : public CDlgBase CCtrlButton m_btnCancel, m_btnCopyClip, m_btnCopyFile;
CCtrlRichEdit m_redtViewVersionInfo;
- HDWP MyResizeWindow(HDWP hDwp, HWND hwndCtrl, int nHorizontalOffset, int nVerticalOffset, int nWidthOffset, int nHeightOffset)
- {
- if (nullptr == m_hwnd) /* Wine fix. */
- return hDwp;
- // get current bounding rectangle
- RECT rcinit;
- GetWindowRect(hwndCtrl, &rcinit);
-
- // get current top left point
- POINT pt;
- pt.x = rcinit.left;
- pt.y = rcinit.top;
- ScreenToClient(m_hwnd, &pt);
-
- return DeferWindowPos(hDwp, hwndCtrl, nullptr,
- pt.x + nHorizontalOffset,
- pt.y + nVerticalOffset,
- rcinit.right - rcinit.left + nWidthOffset,
- rcinit.bottom - rcinit.top + nHeightOffset,
- SWP_NOZORDER);
- }
-
- BOOL MyResizeGetOffset(int nWidth, int nHeight, int* nDx, int* nDy)
- {
- RECT rcinit;
-
- // get current bounding rectangle
- GetWindowRect(m_redtViewVersionInfo.GetHwnd(), &rcinit);
-
- // calculate offsets
- *nDx = nWidth - (rcinit.right - rcinit.left);
- *nDy = nHeight - (rcinit.bottom - rcinit.top);
-
- return rcinit.bottom != rcinit.top && nHeight > 0;
- }
-
public:
CViewVersionInfo(DWORD flags) :
CDlgBase(g_plugin, IDD_VIEWVERSION),
@@ -222,7 +186,6 @@ class COptDialog : public CDlgBase void COptDialog::OnCatchCrashesChange(CCtrlCheck*)
{
- m_chkClassicDates.Enable(m_chkCatchCrashes.GetState());
m_chkRepSubfolder.Enable(m_chkCatchCrashes.GetState());
m_lblRestart.Show();
needrestart = 1;
|