Click here to Skip to main content
15,900,110 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionParsers Pin
Waldermort24-Sep-06 1:35
Waldermort24-Sep-06 1:35 
Questionhow can we change the font of CString variables Pin
johnalek24-Sep-06 1:12
johnalek24-Sep-06 1:12 
AnswerRe: how can we change the font of CString variables Pin
Christian Graus24-Sep-06 1:24
protectorChristian Graus24-Sep-06 1:24 
AnswerRe: how can we change the font of CString variables Pin
Hamid_RT24-Sep-06 2:09
Hamid_RT24-Sep-06 2:09 
GeneralRe: how can we change the font of CString variables Pin
johnalek24-Sep-06 2:59
johnalek24-Sep-06 2:59 
QuestionRe: how can we change the font of CString variables Pin
Eytukan24-Sep-06 3:27
Eytukan24-Sep-06 3:27 
AnswerRe: how can we change the font of CString variables Pin
Maximilien24-Sep-06 4:39
Maximilien24-Sep-06 4:39 
GeneralRe: how can we change the font of CString variables Pin
Reagan Conservative25-Sep-06 3:54
Reagan Conservative25-Sep-06 3:54 
Here's something I did for a Dialog Box --- changing the font size and the font type. This was done in the Initializer of the class:
(m_Font is of type CFont() )

// create an Arial font of 11 pixels
m_Font.DeleteObject();

m_Font.CreatePointFont(160, _T("Arial"));

m_canx.SetFont(&m_Font);
m_ok.SetFont(&m_Font);


// set the font to be larger for all the controls on the verify page
GetDlgItem(IDC_TEXT1)->SetFont(&m_Font);
GetDlgItem(IDC_TEXT2)->SetFont(&m_Font);
GetDlgItem(IDOK)->SetFont(&m_Font);
GetDlgItem(IDCANCEL)->SetFont(&m_Font);
GetDlgItem(IDC_NOTICE)->SetFont(&m_Font);

This should help you figure out what to do for your code.


John P.

Questionfatal error LNK1120: 1 unresolved externals Pin
RockyJames23-Sep-06 22:12
RockyJames23-Sep-06 22:12 
AnswerRe: fatal error LNK1120: 1 unresolved externals Pin
Graham Bradshaw23-Sep-06 22:45
Graham Bradshaw23-Sep-06 22:45 
Questionsubclassed CPrintDialog won't close properly Pin
Roj23-Sep-06 20:23
Roj23-Sep-06 20:23 
Questionmove window Pin
zon_cpp23-Sep-06 20:03
zon_cpp23-Sep-06 20:03 
AnswerRe: move window Pin
Steve Echols23-Sep-06 20:12
Steve Echols23-Sep-06 20:12 
GeneralRe: move window Pin
zon_cpp23-Sep-06 20:18
zon_cpp23-Sep-06 20:18 
GeneralRe: move window Pin
zon_cpp23-Sep-06 20:28
zon_cpp23-Sep-06 20:28 
QuestionProblem with hook Pin
joe.cet23-Sep-06 17:48
joe.cet23-Sep-06 17:48 
QuestionHow to Create a Timed Displayed Dialog Pin
Larry Mills Sr23-Sep-06 16:17
Larry Mills Sr23-Sep-06 16:17 
AnswerRe: How to Create a Timed Displayed Dialog Pin
PJ Arends23-Sep-06 17:04
professionalPJ Arends23-Sep-06 17:04 
AnswerRe: How to Create a Timed Displayed Dialog Pin
ThatsAlok23-Sep-06 19:30
ThatsAlok23-Sep-06 19:30 
GeneralRe: How to Create a Timed Displayed Dialog Pin
Larry Mills Sr29-Sep-06 17:08
Larry Mills Sr29-Sep-06 17:08 
GeneralRe: How to Create a Timed Displayed Dialog Pin
ThatsAlok4-Oct-06 7:34
ThatsAlok4-Oct-06 7:34 
AnswerRe: How to Create a Timed Displayed Dialog Pin
Hamid_RT28-Sep-06 10:02
Hamid_RT28-Sep-06 10:02 
QuestionNewbie dhcp question, plzzz help!! Pin
uzee23-Sep-06 10:14
uzee23-Sep-06 10:14 
AnswerRe: Newbie dhcp question, plzzz help!! Pin
markkuk23-Sep-06 12:01
markkuk23-Sep-06 12:01 
Questionthreads in vc++ Pin
amaneet23-Sep-06 9:36
amaneet23-Sep-06 9:36 

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.