Click here to Skip to main content
15,894,539 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Assembly listing of a Header file Pin
ForNow27-Sep-08 14:14
ForNow27-Sep-08 14:14 
QuestionRe: Assembly listing of a Header file Pin
Bram van Kampen27-Sep-08 12:21
Bram van Kampen27-Sep-08 12:21 
AnswerRe: Assembly listing of a Header file Pin
ForNow27-Sep-08 14:18
ForNow27-Sep-08 14:18 
GeneralRe: Assembly listing of a Header file Pin
Bram van Kampen1-Oct-08 16:21
Bram van Kampen1-Oct-08 16:21 
GeneralRe: Assembly listing of a Header file Pin
ForNow1-Oct-08 16:52
ForNow1-Oct-08 16:52 
GeneralRe: Assembly listing of a Header file Pin
Bram van Kampen2-Oct-08 16:04
Bram van Kampen2-Oct-08 16:04 
AnswerRe: Assembly listing of a Header file Pin
Bram van Kampen27-Sep-08 12:19
Bram van Kampen27-Sep-08 12:19 
QuestionCFontDialog incorrect default size Pin
Lonnie Johnson26-Sep-08 5:38
Lonnie Johnson26-Sep-08 5:38 
In the OnBeginPrinting function of my view class I am displaying a CFontDialog dialog box. I want the default font to be Arial and the default size to be 10. When the dialog box displays, it a shows default size of 62.

Here is the code. These are the first lines in the OnBeginPrinting function.

ASSERT(pDC->GetMapMode() == MM_TEXT); 
LOGFONT  lf;
::ZeroMemory(&lf, sizeof(LOGFONT));
lf.lfHeight = -MulDiv(10, pDC->GetDeviceCaps(LOGPIXELSY), 72);
lstrcpy(lf.lfFaceName, _T("Arial"));    
CFontDialog dlg&lf, CF_PRINTERFONTS, pDC);
if (dlg.DoModal() == IDOK)
{
    m_strFont = dlg.GetFaceName();
    m_nPointSize = dlg.GetSize() / 10;
}


Why is the dialog displaying the wrong size value?
QuestionRe: CFontDialog incorrect default size Pin
David Crow26-Sep-08 8:14
David Crow26-Sep-08 8:14 
AnswerRe: CFontDialog incorrect default size Pin
Lonnie Johnson26-Sep-08 8:47
Lonnie Johnson26-Sep-08 8:47 
AnswerRe: CFontDialog incorrect default size Pin
PJ Arends26-Sep-08 9:41
professionalPJ Arends26-Sep-08 9:41 
GeneralRe: CFontDialog incorrect default size Pin
Lonnie Johnson26-Sep-08 10:23
Lonnie Johnson26-Sep-08 10:23 
GeneralRe: CFontDialog incorrect default size Pin
PJ Arends26-Sep-08 14:19
professionalPJ Arends26-Sep-08 14:19 
Questionvisual c++ 6 and virtualdub Pin
ditsikts26-Sep-08 5:20
ditsikts26-Sep-08 5:20 
AnswerRe: visual c++ 6 and virtualdub Pin
Matthew Faithfull26-Sep-08 5:31
Matthew Faithfull26-Sep-08 5:31 
QuestionSplit window/dialog? Pin
bosfan26-Sep-08 4:53
bosfan26-Sep-08 4:53 
AnswerRe: Split window/dialog? Pin
CPallini26-Sep-08 5:21
mveCPallini26-Sep-08 5:21 
AnswerRe: Split window/dialog? Pin
Nitheesh George26-Sep-08 6:16
Nitheesh George26-Sep-08 6:16 
QuestionNeed help with a client/server real time video application Pin
Neil Ellerington26-Sep-08 4:07
Neil Ellerington26-Sep-08 4:07 
JokeRe: Need help with a client/server real time video application Pin
Joseph Marzbani26-Sep-08 8:41
Joseph Marzbani26-Sep-08 8:41 
Question[Windows Mobile]: gwes.exe error message Pin
madyastha26-Sep-08 2:56
madyastha26-Sep-08 2:56 
AnswerRe: [Windows Mobile]: gwes.exe error message Pin
Rajesh R Subramanian26-Sep-08 3:04
professionalRajesh R Subramanian26-Sep-08 3:04 
GeneralRe: [Windows Mobile]: gwes.exe error message [modified] Pin
madyastha26-Sep-08 3:24
madyastha26-Sep-08 3:24 
QuestionFunction calling from one class to other class Pin
MsmVc26-Sep-08 2:21
MsmVc26-Sep-08 2:21 
AnswerRe: Function calling from one class to other class Pin
David Crow26-Sep-08 2:35
David Crow26-Sep-08 2:35 

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.