文件名称:scorllBitmapWnd
介绍说明--下载内容均来自于网络,请自行研究使用
自绘带滚动条的显示图片控件,需要OnLButtonDown消息需要WS_CHILD | WS_VISIBLE | SS_NOTIFY
窗口样式
使用方法:
DWORD lStyle = WS_CHILD | WS_VISIBLE | SS_NOTIFY
m_PicShowWnd.Create(_T(""), lStyle, CRect(5, 5, 100, 30),this,102)
m_PicShowWnd.ShowWindow(true)
通过程序控制窗口的大小,图片内容及滚动条会自动适应。-Since the painting scroll bars with the display picture control, need OnLButtonDown message needs WS_CHILD | WS_VISIBLE | SS_NOTIFY window style to use: DWORD lStyle = WS_CHILD | WS_VISIBLE | SS_NOTIFY m_PicShowWnd.Create (_T (" " ), lStyle, CRect (5, 5 , 100, 30), this, 102) m_PicShowWnd.ShowWindow (true) through the program control window size, image content and the scroll bar will automatically adapt.
窗口样式
使用方法:
DWORD lStyle = WS_CHILD | WS_VISIBLE | SS_NOTIFY
m_PicShowWnd.Create(_T(""), lStyle, CRect(5, 5, 100, 30),this,102)
m_PicShowWnd.ShowWindow(true)
通过程序控制窗口的大小,图片内容及滚动条会自动适应。-Since the painting scroll bars with the display picture control, need OnLButtonDown message needs WS_CHILD | WS_VISIBLE | SS_NOTIFY window style to use: DWORD lStyle = WS_CHILD | WS_VISIBLE | SS_NOTIFY m_PicShowWnd.Create (_T (" " ), lStyle, CRect (5, 5 , 100, 30), this, 102) m_PicShowWnd.ShowWindow (true) through the program control window size, image content and the scroll bar will automatically adapt.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
ScrollBitmapWnd.h
ScrollBitmapWnd.cpp
ScrollBitmapWnd.cpp