Introduction - If you have any usage issues, please Google them yourself
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.