Scrolling Support for ATL Composite Controls
Posted
by Brad Barber
on February 11th, 2000
Here's a class that I wrote that adds scrolling support to any ATL Composite Control.
The following steps are needed to add scrolling...
- Include the ScrollImpl.h file
- Add CScrollImpl to your inheritance tree
- Add the following entry to your Message Map
- Add a message handler for WM_INITDIALOG and add the following line to OnInitDialog...
- Set xScrollPos to the position that you want horizontal scrolling to start and yScrollPos for the position you want vertical scrolling to start.
#include "ScrollImpl.h"
public CScrollImpl
CHAIN_MSG_MAP(CScrollImpl)
SetScrollSize( m_hWnd, xScrollPos, yScrollPos );

Comments
There are no comments yet. Be the first to comment!