Improve ToolbarDlg slide in / slide out performance

This commit is contained in:
yuanyuanxiang
2025-12-25 18:49:10 +01:00
parent a297f3419f
commit 9d1e9eb2af
5 changed files with 72 additions and 19 deletions

View File

@@ -4,6 +4,8 @@
class CToolbarDlg : public CDialogEx
{
DECLARE_DYNAMIC(CToolbarDlg)
private:
int m_lastY = 0; // 记录上一次的 Y 坐标
public:
CToolbarDlg(CWnd* pParent = nullptr);
@@ -25,6 +27,8 @@ protected:
public:
afx_msg void OnBnClickedExitFullscreen();
afx_msg void OnBnClickedCtrl();
afx_msg void OnBnClickedMinimize();
afx_msg void OnBnClickedClose();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
virtual BOOL OnInitDialog();
};