Download demo project - 22 Kb
Download source files - 5 Kb
<!-- Article Starts -->
CCJPagerCtrl is fairly simple to use. It can be used in either a dialog or view.
For demo purposes, I implemented it in a dialog using a
CToolBar, but you can use any control
or view class as the child window. Open your dialog in your resource editor and add a custom control.
Modify the properties of the control as shown below:
OnInitDialog() section, add the following code:
if( !m_wndToolBar.Create(&m_Pager) ||
TRACE0("Failed to create toolbar\n");
return -1; }
If you are using Visual C++ 5, you will need to include the support file comm_control.h
project, unless you have installed the SDK, in which case you won't need this. If you have any
questions, feel free to drop me a line.