Click here to Skip to main content
15,919,613 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Does this code leaks memory? Pin
Joan M11-Mar-03 20:39
professionalJoan M11-Mar-03 20:39 
GeneralRe: Does this code leaks memory? Pin
Tim Smith11-Mar-03 9:23
Tim Smith11-Mar-03 9:23 
AnswerRe: Does this code leaks memory? Pin
Rob Groves12-Mar-03 10:52
Rob Groves12-Mar-03 10:52 
GeneralDirectShow - CBaseControlWindow(BaseClasses) Pin
Jakub Misek11-Mar-03 8:09
Jakub Misek11-Mar-03 8:09 
GeneralConvert BITMAP to JPEG Pin
Emiliano11-Mar-03 8:05
Emiliano11-Mar-03 8:05 
GeneralRe: Convert BITMAP to JPEG Pin
Larry Antram11-Mar-03 8:09
Larry Antram11-Mar-03 8:09 
GeneralConvert Screen Rect to Printer Rect Pin
Gilfrog11-Mar-03 7:46
Gilfrog11-Mar-03 7:46 
GeneralRe: Convert Screen Rect to Printer Rect Pin
Nitron11-Mar-03 7:55
Nitron11-Mar-03 7:55 
HDC hdcPrinter;
CPrintDialog dlg(FALSE);
// get a dc for the screen and attach it to a CDC
CDC dcScreen;
HDC hdcScreen = ::GetDC(NULL);
dcScreen.Attach(hdcScreen);

if (dlg.DoModal() == IDOK)
{
	hdcPrinter=dlg.GetPrinterDC();

	long logicalPixelsPerInchX_Screen = GetDeviceCaps(hdcScreen, LOGPIXELSX); 
	long logicalPixelsPerInchY_Screen = GetDeviceCaps(hdcScreen, LOGPIXELSY); 

	long logicalPixelsPerInchX_Printer = GetDeviceCaps(hdcPrinter, LOGPIXELSX);
	long logicalPixelsPerInchY_Printer = GetDeviceCaps(hdcPrinter, LOGPIXELSY);
}


- Nitron


"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
GeneralRe: Convert Screen Rect to Printer Rect Pin
Gilfrog11-Mar-03 8:08
Gilfrog11-Mar-03 8:08 
GeneralMFC42D.DLL not found !!! Pin
ZarrinPour11-Mar-03 7:34
ZarrinPour11-Mar-03 7:34 
GeneralRe: MFC42D.DLL not found !!! Pin
User 665811-Mar-03 7:59
User 665811-Mar-03 7:59 
Generalw2000 & w98 Pin
doctorpi11-Mar-03 7:27
doctorpi11-Mar-03 7:27 
GeneralRe: w2000 & w98 Pin
Mike Nordell11-Mar-03 19:33
Mike Nordell11-Mar-03 19:33 
GeneralWindow Pin
wanju11-Mar-03 6:42
wanju11-Mar-03 6:42 
GeneralRe: Window Pin
Big Art11-Mar-03 7:01
Big Art11-Mar-03 7:01 
GeneralCPropertySheet Default Button Pin
Wim Jans11-Mar-03 6:38
Wim Jans11-Mar-03 6:38 
GeneralRe: CPropertySheet Default Button Pin
dazinith11-Mar-03 8:20
dazinith11-Mar-03 8:20 
GeneralRe: CPropertySheet Default Button Pin
Wim Jans11-Mar-03 21:25
Wim Jans11-Mar-03 21:25 
GeneralRe: CPropertySheet Default Button Pin
Wim Jans11-Mar-03 21:53
Wim Jans11-Mar-03 21:53 
GeneralGDI resources Pin
doctorpi11-Mar-03 6:28
doctorpi11-Mar-03 6:28 
GeneralRe: GDI resources Pin
MAAK11-Mar-03 8:55
MAAK11-Mar-03 8:55 
GeneralPlayEnhMetaFile on CreateDIBSection Pin
dr_nick_riviera11-Mar-03 6:06
dr_nick_riviera11-Mar-03 6:06 
GeneralPlayEnhMetaFile Pin
dr_nick_riviera11-Mar-03 6:04
dr_nick_riviera11-Mar-03 6:04 
QuestionSeparate all lines in a string? Pin
Rickard Andersson2011-Mar-03 6:02
Rickard Andersson2011-Mar-03 6:02 
AnswerRe: Separate all lines in a string? Pin
Big Art11-Mar-03 7:27
Big Art11-Mar-03 7:27 

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.