Click here to Skip to main content
11,642,216 members (61,257 online)

C / C++ / MFC

 
GeneralRe: Bitmap creation from a buffer recived Pin
toms from newdelhi1-Feb-13 0:56
membertoms from newdelhi1-Feb-13 0:56 
GeneralRe: Bitmap creation from a buffer recived Pin
Richard MacCutchan1-Feb-13 1:01
mvpRichard MacCutchan1-Feb-13 1:01 
GeneralRe: Bitmap creation from a buffer recived Pin
toms from newdelhi1-Feb-13 1:18
membertoms from newdelhi1-Feb-13 1:18 
GeneralRe: Bitmap creation from a buffer recived Pin
Richard MacCutchan1-Feb-13 1:35
mvpRichard MacCutchan1-Feb-13 1:35 
GeneralRe: Bitmap creation from a buffer recived Pin
toms from newdelhi1-Feb-13 1:46
membertoms from newdelhi1-Feb-13 1:46 
GeneralRe: Bitmap creation from a buffer recived Pin
Richard MacCutchan1-Feb-13 2:35
mvpRichard MacCutchan1-Feb-13 2:35 
GeneralRe: Bitmap creation from a buffer recived Pin
jibesh1-Feb-13 8:03
memberjibesh1-Feb-13 8:03 
QuestionMFC and printing Pin
Argonia31-Jan-13 5:43
memberArgonia31-Jan-13 5: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 Pin
sujayg1-Feb-13 16:21
membersujayg1-Feb-13 16:21 
QuestionMFC Smart Device App with Visual C++ in Visual Std 2008 Pin
sefasolak31-Jan-13 3:09
membersefasolak31-Jan-13 3:09 
AnswerRe: MFC Smart Device App with Visual C++ in Visual Std 2008 Pin
Richard MacCutchan31-Jan-13 3:45
mvpRichard MacCutchan31-Jan-13 3:45 
Questionunable to register COM dll 64 bit Pin
john563231-Jan-13 2:12
memberjohn563231-Jan-13 2:12 
AnswerRe: unable to register COM dll 64 bit Pin
«_Superman_»1-Feb-13 16:59
member«_Superman_»1-Feb-13 16:59 
QuestionPlay Media File Pin
john563230-Jan-13 19:38
memberjohn563230-Jan-13 19:38 
AnswerRe: Play Media File Pin
Flaviu230-Jan-13 21:47
memberFlaviu230-Jan-13 21:47 
GeneralRe: Play Media File Pin
john563231-Jan-13 1:07
memberjohn563231-Jan-13 1:07 
AnswerRe: Play Media File Pin
jeron131-Jan-13 4:28
memberjeron131-Jan-13 4:28 
GeneralRe: Play Media File Pin
john563231-Jan-13 17:09
memberjohn563231-Jan-13 17:09 
GeneralRe: Play Media File Pin
jeron11-Feb-13 7:27
memberjeron11-Feb-13 7:27 
GeneralRe: Play Media File Pin
merano1-Feb-13 14:11
membermerano1-Feb-13 14:11 
QuestionTCP Server: Render the image on server side Pin
toms from newdelhi30-Jan-13 1:29
membertoms from newdelhi30-Jan-13 1:29 
AnswerRe: TCP Server: Render the image on server side Pin
Richard MacCutchan30-Jan-13 3:01
mvpRichard MacCutchan30-Jan-13 3:01 
GeneralRe: TCP Server: Render the image on server side Pin
toms from newdelhi30-Jan-13 16:44
membertoms from newdelhi30-Jan-13 16:44 
GeneralRe: TCP Server: Render the image on server side Pin
Richard MacCutchan30-Jan-13 21:52
mvpRichard MacCutchan30-Jan-13 21:52 
GeneralRe: TCP Server: Render the image on server side Pin
toms from newdelhi30-Jan-13 22:53
membertoms from newdelhi30-Jan-13 22:53 

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
Web02 | 2.8.150731.1 | Last Updated 2 Aug 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid