End Google Ads 201810 - BS.net 01 --> I created an MFC application and added Printing and Print Preview capability to a CMyFormView derived from CFormView. The problem is that the "Prev Page" and "Zoom Out" buttons on the Print Preview toolbar are always disabled whether the second, third or last page is displayed. The "Next Page" button are always enabled and work correctly.

For the Prev Page button, I set CPrintInfo::SetMaxPage() and CPrintInfo::SetMinPage(). However, this doesnt work to enable the Prev Page button. In debug mode, I could see that CPrintInfo::m_nCurPage value was correct within OnPrint() method when the program is in print preview. Anybody knows how to enable Prev Page button in Print Preview dialog?


Thanks

Sheng