Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: How to Implement Drag & Drop feature for Imagesin MFC.? PinmemberJochen Arndt3-Feb-13 22:46 
QuestionStuck in WaveInProc PinmemberAmbiguousName2-Feb-13 8:21 
AnswerRe: Stuck in WaveInProc PinmvpCPallini2-Feb-13 11:38 
AnswerRe: Stuck in WaveInProc PinmvpRichard MacCutchan2-Feb-13 22:26 
QuestionBitmap creation from a buffer recived Pinmembertoms from newdelhi1-Feb-13 1:03 
AnswerRe: Bitmap creation from a buffer recived PinmvpRichard MacCutchan1-Feb-13 1:40 
GeneralRe: Bitmap creation from a buffer recived Pinmembertoms from newdelhi1-Feb-13 1:56 
GeneralRe: Bitmap creation from a buffer recived PinmvpRichard MacCutchan1-Feb-13 2:01 
GeneralRe: Bitmap creation from a buffer recived Pinmembertoms from newdelhi1-Feb-13 2:18 
GeneralRe: Bitmap creation from a buffer recived PinmvpRichard MacCutchan1-Feb-13 2:35 
GeneralRe: Bitmap creation from a buffer recived Pinmembertoms from newdelhi1-Feb-13 2:46 
GeneralRe: Bitmap creation from a buffer recived PinmvpRichard MacCutchan1-Feb-13 3:35 
GeneralRe: Bitmap creation from a buffer recived Pinmemberjibesh1-Feb-13 9:03 
QuestionMFC and printing PinmemberArgonia31-Jan-13 6:43 
Hello everybody i have a small question , not big enough for the quick answers Smile | :) . I am working on a MFC project a little bit old. And i had to add a header to the print result. My problem was with the font Size. After some tries i found the really useful Article about Printing trics. The problem was when i used
PrinterFont.lfHeight = -MulDiv(12, dc->GetDeviceCaps(LOGPIXELSY), 72);
Printing was ok but the PrintPreview wasnt. The font size was still small and i know why the GetDeviceCaps was returning the dpi of the monitor. This was understandable . After some digging in the code i found that for the rest printed text the font size was calculated a little bit different. For the font Height was taken the absolute value of the height multiplied by the zoom and all divided by some constant. My question is is there some practice about that kind of calculation . To be honest i don't think its a good idea to use it. I don't believe that all printers will print the same thing. But the PrintPreview and the Print result are pretty much the same.
What do you think ?
Thank youSmile | :)
AnswerRe: MFC and printing Pinmembersujayg1-Feb-13 17:21 
QuestionMFC Smart Device App with Visual C++ in Visual Std 2008 Pinmembersefasolak31-Jan-13 4:09 
AnswerRe: MFC Smart Device App with Visual C++ in Visual Std 2008 PinmvpRichard MacCutchan31-Jan-13 4:45 
Questionunable to register COM dll 64 bit Pinmemberjohn563231-Jan-13 3:12 
AnswerRe: unable to register COM dll 64 bit Pinmember«_Superman_»1-Feb-13 17:59 
QuestionPlay Media File Pinmemberjohn563230-Jan-13 20:38 
AnswerRe: Play Media File PinmemberFlaviu230-Jan-13 22:47 
GeneralRe: Play Media File Pinmemberjohn563231-Jan-13 2:07 
AnswerRe: Play Media File Pinmemberjeron131-Jan-13 5:28 
GeneralRe: Play Media File Pinmemberjohn563231-Jan-13 18:09 
GeneralRe: Play Media File Pinmemberjeron11-Feb-13 8:27 
GeneralRe: Play Media File Pinmembermerano1-Feb-13 15:11 
QuestionTCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 2:29 
AnswerRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan30-Jan-13 4:01 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 17:44 
GeneralRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan30-Jan-13 22:52 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 23:53 
GeneralRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan30-Jan-13 23:56 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 23:59 
GeneralRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan31-Jan-13 0:08 
AnswerRe: TCP Server: Render the image on server side PinmemberErudite_Eric30-Jan-13 4:13 
GeneralRe: TCP Server: Render the image on server side PinmvpRichard MacCutchan30-Jan-13 5:35 
GeneralRe: TCP Server: Render the image on server side PinmemberErudite_Eric30-Jan-13 6:01 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 17:47 
GeneralRe: TCP Server: Render the image on server side PinmemberErudite_Eric30-Jan-13 23:36 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 23:57 
GeneralRe: TCP Server: Render the image on server side PinmemberErudite_Eric31-Jan-13 22:35 
AnswerRe: TCP Server: Render the image on server side PinmemberAndy Bantly30-Jan-13 13:12 
GeneralRe: TCP Server: Render the image on server side Pinmembertoms from newdelhi30-Jan-13 17:51 
GeneralRe: TCP Server: Render the image on server side PinmemberAndy Bantly3-Feb-13 4:58 
QuestionCan a modeless dialog box be a main window PinmemberForNow29-Jan-13 12:44 
AnswerRe: Can a modeless dialog box be a main window Pinmember«_Superman_»29-Jan-13 20:17 
GeneralRe: Can a modeless dialog box be a main window PinmemberForNow29-Jan-13 20:34 
AnswerRe: Can a modeless dialog box be a main window PinmvpRichard MacCutchan29-Jan-13 22:10 
GeneralRe: Can a modeless dialog box be a main window PinmemberForNow30-Jan-13 8:30 
GeneralRe: Can a modeless dialog box be a main window PinmvpRichard MacCutchan30-Jan-13 8:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 26 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid