Click here to Skip to main content
15,921,660 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Window Minimization problem Pin
MuraliKrishnaP16-Jan-07 1:47
MuraliKrishnaP16-Jan-07 1:47 
GeneralRe: Window Minimization problem Pin
pri_skit16-Jan-07 2:46
pri_skit16-Jan-07 2:46 
QuestionUnresolved external symbol in vc++ Pin
harshadha15-Jan-07 21:17
harshadha15-Jan-07 21:17 
AnswerRe: Unresolved external symbol in vc++ Pin
prasad_som15-Jan-07 21:36
prasad_som15-Jan-07 21:36 
GeneralRe: Unresolved external symbol in vc++ Pin
harshadha15-Jan-07 22:35
harshadha15-Jan-07 22:35 
QuestionPrinter DC Pin
KKumarTG15-Jan-07 20:38
KKumarTG15-Jan-07 20:38 
AnswerRe: Printer DC Pin
Hamid_RT15-Jan-07 20:52
Hamid_RT15-Jan-07 20:52 
GeneralRe: Printer DC Pin
KKumarTG15-Jan-07 22:11
KKumarTG15-Jan-07 22:11 
Hi,

Actually i want to know that, whether the printer DC is to be resized according to the paper sizes.

If yes, how can i change the size?

Me already checked with the following code

for( int nIndex = 0; nIndex < nNumPapers; nIndex++ )
{
CString csPaperSize = _T( pPaperNames ); /* Got from GetDeviceCapabilities */
memcpy( pDevModeOutput->dmFormName, csPaperSize.GetBuffer(csPaperSize.GetLength()), 32) ;
HDC hTempHandle;
pDevModeOutput->dmFields |= DM_FORMNAME;
CString csTemp( _T( "" ));

hTempHandle = ResetDC( hDc, pDevModeOutput );
nPixelX = GetDeviceCaps( hDc, HORZRES );
nPixelY = GetDeviceCaps( hDc, VERTRES );

csTemp.Format( _T( "%s : %d, %d" ), pDevModeOutput->dmFormName, nPixelX, nPixelY );

AfxMessageBox( csTemp );
}

but the nPixelX, nPixelY always getting the same for all paper sizes

Regards,
Krishnakumar
GeneralRe: Printer DC Pin
Hamid_RT16-Jan-07 1:37
Hamid_RT16-Jan-07 1:37 
GeneralRe: Printer DC Pin
KKumarTG23-Jan-07 17:03
KKumarTG23-Jan-07 17:03 
GeneralRe: Printer DC Pin
Hamid_RT24-Jan-07 18:00
Hamid_RT24-Jan-07 18:00 
AnswerRe: Printer DC Pin
Iain Clarke, Warrior Programmer15-Jan-07 22:43
Iain Clarke, Warrior Programmer15-Jan-07 22:43 
GeneralRe: Printer DC Pin
KKumarTG15-Jan-07 23:00
KKumarTG15-Jan-07 23:00 
GeneralRe: Printer DC Pin
Iain Clarke, Warrior Programmer16-Jan-07 3:52
Iain Clarke, Warrior Programmer16-Jan-07 3:52 
GeneralRe: Printer DC Pin
KKumarTG23-Jan-07 1:06
KKumarTG23-Jan-07 1:06 
QuestionINI file size in XP Pin
Nishad S15-Jan-07 20:07
Nishad S15-Jan-07 20:07 
AnswerRe: INI file size in XP Pin
Hamid_RT15-Jan-07 20:28
Hamid_RT15-Jan-07 20:28 
AnswerRe: INI file size in XP Pin
Rajesh R Subramanian15-Jan-07 20:40
professionalRajesh R Subramanian15-Jan-07 20:40 
AnswerRe: INI file size in XP Pin
Don Box15-Jan-07 20:41
Don Box15-Jan-07 20:41 
GeneralRe: INI file size in XP Pin
Sebastian Schneider15-Jan-07 21:41
Sebastian Schneider15-Jan-07 21:41 
QuestionRe: INI file size in XP Pin
David Crow16-Jan-07 3:42
David Crow16-Jan-07 3:42 
Questionquestion about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
George_George15-Jan-07 20:07
George_George15-Jan-07 20:07 
AnswerRe: question about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
Michael Dunn15-Jan-07 22:21
sitebuilderMichael Dunn15-Jan-07 22:21 
GeneralRe: question about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
George_George15-Jan-07 23:59
George_George15-Jan-07 23:59 
GeneralRe: question about CreateFile and FILE_FLAG_WRITE_THROUGH Pin
Michael Dunn16-Jan-07 8:03
sitebuilderMichael Dunn16-Jan-07 8:03 

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.