Click here to Skip to main content
16,008,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Non-Modal dialog Pin
Michael P Butler22-Sep-01 12:48
Michael P Butler22-Sep-01 12:48 
GeneralRe: Non-Modal dialog Pin
User 988522-Sep-01 13:31
User 988522-Sep-01 13:31 
GeneralRe: Non-Modal dialog Pin
23-Sep-01 3:58
suss23-Sep-01 3:58 
QuestionIs there a LVS_SHOWSELNEVER? Pin
Joep22-Sep-01 9:13
Joep22-Sep-01 9:13 
AnswerRe: Is there a LVS_SHOWSELNEVER? Pin
Ravi Bhavnani22-Sep-01 9:28
professionalRavi Bhavnani22-Sep-01 9:28 
GeneralRe: Is there a LVS_SHOWSELNEVER? Pin
Joep22-Sep-01 11:04
Joep22-Sep-01 11:04 
GeneralRe: Is there a LVS_SHOWSELNEVER? Pin
Ravi Bhavnani22-Sep-01 11:24
professionalRavi Bhavnani22-Sep-01 11:24 
QuestionHow can I print multiple pages? I am really frustrated. Pin
DanYELL22-Sep-01 6:40
DanYELL22-Sep-01 6:40 
This seems like a simple question. I want to print multiple pages of text. I am using Stringer's fantastic printing class library. Let's say I want to print 2 pages of text.

The user clicks File/Print and a dialog box comes up. I called:

CPrintPages PrintPages;
PrintPages.DoModal();

The user can click from a bunch of check boxes which pages they want to print. Let's say they check m_page1 and m_page2. I do:

void CFormOptions::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
CPage* pPage = new CPage(pInfo->m_rectDraw,pDC);

if (PrintPages.m_page1)
{
void PrintPage1(CPage* pPage);
PrintPage1(pPage);
}

if (PrintPages.m_page2)
{
void PrintPage2(CPage* pPage);
PrintPage2(pPage);
}
...

But it print two (2) pages, with both pages on top of each other. How can I programmatically make it print page 1 and then print page 2? I tried

pInfo->m_curPage ++;

and other things, but nothing I try works. Please, please, any response any one can give me will be greatly appreciated.

Sincerely,
Danielle (an overworked graduate student)



AnswerRe: How can I print multiple pages? I am really frustrated. Pin
22-Sep-01 9:05
suss22-Sep-01 9:05 
GeneralDialog size question Pin
22-Sep-01 6:24
suss22-Sep-01 6:24 
GeneralRe: Dialog size question Pin
Paolo Messina22-Sep-01 6:44
professionalPaolo Messina22-Sep-01 6:44 
GeneralRe: Dialog size question Pin
22-Sep-01 19:13
suss22-Sep-01 19:13 
Generalreturn BSTR Pin
Eran22-Sep-01 3:29
Eran22-Sep-01 3:29 
GeneralRe: return BSTR Pin
loket22-Sep-01 3:46
loket22-Sep-01 3:46 
GeneralRe: return BSTR Pin
Jason De Arte22-Sep-01 5:44
Jason De Arte22-Sep-01 5:44 
GeneralRe: return BSTR Pin
Rashid Thadha22-Sep-01 6:23
Rashid Thadha22-Sep-01 6:23 
GeneralVC++ and SQL Pin
Mr_Byte21-Sep-01 23:44
Mr_Byte21-Sep-01 23:44 
GeneralRe: VC++ and SQL Pin
Ahmad9922-Sep-01 0:20
Ahmad9922-Sep-01 0:20 
GeneralRe: VC++ and SQL Pin
Michael P Butler22-Sep-01 12:33
Michael P Butler22-Sep-01 12:33 
GeneralPainting Problem with CListCtrl Pin
aleem21-Sep-01 20:01
aleem21-Sep-01 20:01 
GeneralRe: Painting Problem with CListCtrl Pin
Paolo Messina22-Sep-01 6:54
professionalPaolo Messina22-Sep-01 6:54 
GeneralRe: Painting Problem with CListCtrl Pin
Tommy H D Svensson8-Nov-01 23:08
Tommy H D Svensson8-Nov-01 23:08 
GeneralBIOS ! ! ! Pin
The_Server21-Sep-01 15:12
The_Server21-Sep-01 15:12 
GeneralRe: BIOS ! ! ! Pin
Michael P Butler22-Sep-01 6:58
Michael P Butler22-Sep-01 6:58 
GeneralRe: BIOS ! ! ! Pin
The_Server22-Sep-01 19:24
The_Server22-Sep-01 19:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.