Click here to Skip to main content
15,888,142 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to set the End of File to a file opened by "fopen" with "r+" Pin
Sarvan AL11-Jan-06 2:23
Sarvan AL11-Jan-06 2:23 
AnswerRe: How to set the End of File to a file opened by "fopen" with "r+" Pin
Prakash Nadar11-Jan-06 2:54
Prakash Nadar11-Jan-06 2:54 
AnswerRe: How to set the End of File to a file opened by "fopen" with "r+" Pin
kakan11-Jan-06 4:04
professionalkakan11-Jan-06 4:04 
GeneralThanks: How to set the End of File to a file opened by "fopen" with "r+" Pin
Sarvan AL11-Jan-06 21:40
Sarvan AL11-Jan-06 21:40 
GeneralRe: Thanks: How to set the End of File to a file opened by "fopen" with "r+" Pin
kakan11-Jan-06 22:05
professionalkakan11-Jan-06 22:05 
QuestionVisual studio intellisense Pin
Russell'11-Jan-06 2:14
Russell'11-Jan-06 2:14 
AnswerRe: Visual studio intellisense Pin
Owner drawn11-Jan-06 17:09
Owner drawn11-Jan-06 17:09 
QuestionPrint image to fit the page Pin
Alberto_Canabal11-Jan-06 2:04
Alberto_Canabal11-Jan-06 2:04 
Hi.
I'm building an MFC app, and at this time trying to add printing facilities.
What i need to do, is to print the image (all the windows of my app show different images) so that it fits the printing page...i've been trying to find the correct calculation (working on OnPrepareDC) with different page/window/screen measures (GetDeviceCaps(...)), but i don't seem to get it.

The pseudo code of OnPrepareDC:
<br />
SuperView::OnPrepareDC(pDC, pInfo);<br />
if (IsPrinting)<br />
{<br />
pDC->SetMapMode(MM_ANISOTROPIC);<br />
CClientDC dc( this );<br />
//This line could be some transform of the ClientRect (??)<br />
CSize szScreen = dc.GetDeviceCaps(...);<br />
//Set the total size...<br />
pDC->SetWindowExt( szScreen );<br />
<br />
CSize szPage = pDC->GetDeviceCaps(...);<br />
CSize szfinal = SOME_CALCULATIONS(szScreen, szPage);<br />
//Set the viewportsize...<br />
pDC->SetViewportExt( szFinal );<br />
}<br />
...<br />


If someone understood the message, and knows something about it...will save my life.

Thanks,
Alberto
QuestionRead\Write Registry Keys Pin
KevinSheedy11-Jan-06 2:04
KevinSheedy11-Jan-06 2:04 
AnswerRe: Read\Write Registry Keys Pin
Russell'11-Jan-06 2:20
Russell'11-Jan-06 2:20 
AnswerRe: Read\Write Registry Keys Pin
James R. Twine11-Jan-06 5:18
James R. Twine11-Jan-06 5:18 
QuestionMFC or ActiveX equivalent control to VB Dirlist control Pin
srimayank11_codeproject11-Jan-06 2:02
srimayank11_codeproject11-Jan-06 2:02 
QuestionHow to crash my programe before main()? Pin
vikas amin11-Jan-06 0:51
vikas amin11-Jan-06 0:51 
AnswerRe: How to crash my programe before main()? Pin
Anilkumar K V11-Jan-06 1:01
Anilkumar K V11-Jan-06 1:01 
GeneralRe: How to crash my programe before main()? Pin
vikas amin11-Jan-06 1:51
vikas amin11-Jan-06 1:51 
AnswerWorks for programs written in any language! Pin
Taka Muraoka11-Jan-06 1:02
Taka Muraoka11-Jan-06 1:02 
AnswerRe: How to crash my programe before main()? Pin
lemur211-Jan-06 1:41
lemur211-Jan-06 1:41 
GeneralRe: How to crash my programe before main()? Pin
vikas amin11-Jan-06 1:54
vikas amin11-Jan-06 1:54 
AnswerRe: How to crash my programe before main()? Pin
Rajesh R Subramanian11-Jan-06 1:47
professionalRajesh R Subramanian11-Jan-06 1:47 
GeneralRe: How to crash my programe before main()? Pin
vikas amin11-Jan-06 1:51
vikas amin11-Jan-06 1:51 
GeneralRe: How to crash my programe before main()? Pin
lemur211-Jan-06 1:55
lemur211-Jan-06 1:55 
GeneralRe: How to crash my programe before main()? Pin
sunit511-Jan-06 3:24
sunit511-Jan-06 3:24 
GeneralRe: How to crash my programe before main()? Pin
Rajesh R Subramanian11-Jan-06 19:37
professionalRajesh R Subramanian11-Jan-06 19:37 
AnswerRe: How to crash my programe before main()? Pin
Cedric Moonen11-Jan-06 1:59
Cedric Moonen11-Jan-06 1:59 
GeneralRe: How to crash my programe before main()? Pin
sunit511-Jan-06 3:21
sunit511-Jan-06 3:21 

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.