在OnLButtonUp里添加:
m_xScreen = GetSystemMetrics(SM_CXSCREEN);
m_yScreen = GetSystemMetrics(SM_CYSCREEN);
CRect rect(0, 0,m_xScreen,m_yScreen);
m_pBitmap = CBitmap::FromHandle(CopyScreenToBitmap(&rect)); //保存每一步,防重绘BUG!
在OnLButtonUp里添加:
m_xScreen = GetSystemMetrics(SM_CXSCREEN);
m_yScreen = GetSystemMetrics(SM_CYSCREEN);
CRect rect(0, 0,m_xScreen,m_yScreen);
m_pBitmap = CBitmap::FromHandle(CopyScreenToBitmap(&rect)); //保存每一步,防重绘BUG!