Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PVOID pBuffer; access to data :confused: Pin
Dave Harper8-Oct-03 13:07
Dave Harper8-Oct-03 13:07 
QuestionConsole c++ global class? Pin
immanis8-Oct-03 7:06
immanis8-Oct-03 7:06 
AnswerRe: Console c++ global class? Pin
Ryan_Roberts8-Oct-03 7:14
Ryan_Roberts8-Oct-03 7:14 
GeneralRe: Console c++ global class? Pin
immanis8-Oct-03 18:03
immanis8-Oct-03 18:03 
AnswerRe: Console c++ global class? Pin
David Crow8-Oct-03 8:17
David Crow8-Oct-03 8:17 
GeneralSplitter Window Control Pin
Lea Hayes8-Oct-03 6:39
Lea Hayes8-Oct-03 6:39 
GeneralRe: Splitter Window Control Pin
David Crow8-Oct-03 6:43
David Crow8-Oct-03 6:43 
GeneralPrinting size -bmp-help needed! Pin
radha vijay8-Oct-03 5:25
radha vijay8-Oct-03 5:25 
Hi
I am trying to print bmp/jpeg image from an mfc application, but the image size is very small.

Can someone tell me how to get the original size while printing?
Here is my code.
Thankyou.

BOOL CView::OnPreparePrinting ( CPrintInfo *info )
{
info -> SetMaxPage ( 1 ) ;
return DoPreparePrinting ( info ) ;
}

void CView::OnPrepareDC ( CDC *pDC, CPrintInfo* info )
{
CView::OnPrepareDC ( pDC, info ) ;

if ( pDC -> IsPrinting( ) )
int n = info -> m_nCurPage ;


pDC->SetMapMode(MM_ANISOTROPIC);

pDC->SetWindowExt(10000,10000);
pDC->SetViewportExt(18000,18000);

pDC->SetViewportOrg(500,1000);



}
}
GeneralRe: Printing size -bmp-help needed! Pin
David Crow8-Oct-03 6:45
David Crow8-Oct-03 6:45 
GeneralRe: Printing size -bmp-help needed! Pin
Alex Dolpfin9-Oct-03 3:49
Alex Dolpfin9-Oct-03 3:49 
GeneralRe: One application for two Operating Systems Pin
vcplusplus8-Oct-03 5:23
vcplusplus8-Oct-03 5:23 
Generaldisplaying of string in CEdit or CRichEditCtrl Pin
Neelesh K J Jain8-Oct-03 5:00
Neelesh K J Jain8-Oct-03 5:00 
GeneralRe: displaying of string in CEdit or CRichEditCtrl Pin
Niall Barr8-Oct-03 5:10
professionalNiall Barr8-Oct-03 5:10 
GeneralRe: displaying of string in CEdit or CRichEditCtrl Pin
David Crow8-Oct-03 6:46
David Crow8-Oct-03 6:46 
GeneralPrint Preview - Text extent differs at various zoom states Pin
Andy Latham8-Oct-03 4:43
Andy Latham8-Oct-03 4:43 
GeneralOne application for two Operating Systems Pin
ThakurSaab8-Oct-03 4:41
ThakurSaab8-Oct-03 4:41 
GeneralRe: One application for two Operating Systems Pin
Niall Barr8-Oct-03 4:57
professionalNiall Barr8-Oct-03 4:57 
GeneralGet license key Pin
Anonymous8-Oct-03 4:05
Anonymous8-Oct-03 4:05 
GeneralRe: Get license key Pin
Wes Aday8-Oct-03 4:38
professionalWes Aday8-Oct-03 4:38 
GeneralRe: Get license key Pin
Anonymous8-Oct-03 5:02
Anonymous8-Oct-03 5:02 
GeneralTransparent winows using a bitmap and UpdateLayeredWindow - HELP pls! Pin
xela8-Oct-03 3:49
xela8-Oct-03 3:49 
GeneralCRichEditCtrl::SetParaFormat Pin
Ph@ntom8-Oct-03 3:46
Ph@ntom8-Oct-03 3:46 
GeneralRe: CRichEditCtrl::SetParaFormat Pin
Larry J. Siddens8-Oct-03 7:56
Larry J. Siddens8-Oct-03 7:56 
Generalchanging autodate of ms office documents Pin
pnpfriend8-Oct-03 3:19
pnpfriend8-Oct-03 3:19 
QuestionUnlimited or arbitrary string lengths? Pin
Kayembi8-Oct-03 3:15
Kayembi8-Oct-03 3:15 

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.