以下是软件的运行示例图:
详细代码见:http://download.csdn.net/detail/qq_23992597/9782089
第二个软件:
示例下载地址:http://download.csdn.net/detail/qq_23992597/9785055
这里只是示例添加ScrollView,其实任何一种view都可以添加.
//2018.03.06日更新
按照以上代码添加,如果出现图片中的问题
请在View的派生类中重写
int CImageIcon::OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message)消息
int CImageIcon::OnMouseActivate(CWnd* pDesktopWnd, UINT nHitTest, UINT message)
{
// TODO: Add your message handler code here and/or call default
return MA_ACTIVATE;
//return CScrollView::OnMouseActivate(pDesktopWnd, nHitTest, message);
}
即可!