Click here to Skip to main content
15,913,773 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: using BitBlt for preview DC Pin
Hamid_RT20-Jan-09 19:06
Hamid_RT20-Jan-09 19:06 
GeneralRe: using BitBlt for preview DC Pin
_T("No name")20-Jan-09 19:48
_T("No name")20-Jan-09 19:48 
GeneralRe: using BitBlt for preview DC Pin
Code-o-mat20-Jan-09 21:53
Code-o-mat20-Jan-09 21:53 
QuestionRe: using BitBlt for preview DC Pin
_T("No name")20-Jan-09 22:09
_T("No name")20-Jan-09 22:09 
AnswerRe: using BitBlt for preview DC Pin
Code-o-mat20-Jan-09 23:57
Code-o-mat20-Jan-09 23:57 
GeneralRe: using BitBlt for preview DC Pin
_T("No name")21-Jan-09 0:04
_T("No name")21-Jan-09 0:04 
GeneralRe: using BitBlt for preview DC Pin
Code-o-mat21-Jan-09 0:10
Code-o-mat21-Jan-09 0:10 
GeneralRe: using BitBlt for preview DC Pin
_T("No name")21-Jan-09 0:16
_T("No name")21-Jan-09 0:16 
did u get the code i have pasted.
i m nt getting wt u have understood and wt u didnt.

void CCalendarControlView::OnFilePrintPreview()
{
AFXPrintPreview(this);
}
CRect rc = rcClient;
void CCalendarControlView::DrawOnDC(CDC * pDC, int isPrinting)
{
memDC.CreateCompatibleDC(pDC);
bmp.CreateCompatibleBitmap(pDC, rc.Width(), rc.Height());
memDC.SelectObject(&bmp);
pMemDC = &memDC;
}

//Now drawinf something on pMemDC
//Now BitBlt
pDC->BitBlt(0, 0, rc.Width(), rc.Height(), pMemDC, 0, 0, SRCCOPY);

this works fine in case of display in window but nuthing comes on OnFilePrintPreview()

if ny prob in getting code please let me knw..

thanx for ur effort
GeneralRe: using BitBlt for preview DC Pin
Code-o-mat21-Jan-09 0:48
Code-o-mat21-Jan-09 0:48 
GeneralRe: using BitBlt for preview DC Pin
_T("No name")21-Jan-09 0:59
_T("No name")21-Jan-09 0:59 
GeneralRe: using BitBlt for preview DC Pin
Code-o-mat21-Jan-09 1:16
Code-o-mat21-Jan-09 1:16 
GeneralRe: using BitBlt for preview DC Pin
_T("No name")21-Jan-09 1:32
_T("No name")21-Jan-09 1:32 
GeneralRe: using BitBlt for preview DC Pin
Code-o-mat21-Jan-09 1:41
Code-o-mat21-Jan-09 1:41 
GeneralRe: using BitBlt for preview DC Pin
_T("No name")21-Jan-09 1:51
_T("No name")21-Jan-09 1:51 
GeneralRe: using BitBlt for preview DC Pin
Code-o-mat21-Jan-09 1:55
Code-o-mat21-Jan-09 1:55 
GeneralRe: using BitBlt for preview DC Pin
_T("No name")21-Jan-09 2:02
_T("No name")21-Jan-09 2:02 
AnswerRe: using BitBlt for preview DC Pin
Nishad S20-Jan-09 21:58
Nishad S20-Jan-09 21:58 
GeneralRe: using BitBlt for preview DC Pin
_T("No name")20-Jan-09 23:27
_T("No name")20-Jan-09 23:27 
QuestionHow to handle smart ptrs and multiple inheritance? Pin
Member 260377220-Jan-09 18:27
Member 260377220-Jan-09 18:27 
AnswerRe: How to handle smart ptrs and multiple inheritance? Pin
Stuart Dootson20-Jan-09 23:23
professionalStuart Dootson20-Jan-09 23:23 
GeneralRe: How to handle smart ptrs and multiple inheritance? Pin
Member 260377221-Jan-09 15:36
Member 260377221-Jan-09 15:36 
GeneralRe: How to handle smart ptrs and multiple inheritance? Pin
Stuart Dootson21-Jan-09 21:01
professionalStuart Dootson21-Jan-09 21:01 
GeneralRe: How to handle smart ptrs and multiple inheritance? Pin
Member 260377222-Jan-09 4:22
Member 260377222-Jan-09 4:22 
QuestionConvert CString to Binary and Binary to CString Pin
NewVC++20-Jan-09 18:21
NewVC++20-Jan-09 18:21 
QuestionRe: Convert CString to Binary and Binary to CString Pin
CPallini20-Jan-09 21:46
mveCPallini20-Jan-09 21:46 

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.