Click here to Skip to main content
15,920,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Callbackfunction question Pin
Dave Bryant5-Dec-02 8:52
Dave Bryant5-Dec-02 8:52 
GeneralRe: Callbackfunction question Pin
russell thorburn5-Dec-02 11:03
sussrussell thorburn5-Dec-02 11:03 
GeneralCTabCtrl - Should be an easy one Pin
Dave_5-Dec-02 7:37
Dave_5-Dec-02 7:37 
GeneralRe: CTabCtrl - Should be an easy one Pin
Shog95-Dec-02 17:55
sitebuilderShog95-Dec-02 17:55 
Generaltoolbar position problems Pin
MichaT5-Dec-02 6:58
MichaT5-Dec-02 6:58 
GeneralRe: toolbar position problems Pin
Roger Allen5-Dec-02 7:55
Roger Allen5-Dec-02 7:55 
GeneralRe: toolbar position problems Pin
MichaT5-Dec-02 8:06
MichaT5-Dec-02 8:06 
GeneralCFont problem... Pin
Ruca5-Dec-02 6:23
Ruca5-Dec-02 6:23 
Hi!

I'm trying to use two diferent CFont objects to use in diferente CStatics, but one of them is never used, why does this happends, i did like :

void CUnits_Sold::OnInitialUpdate()
{
CFormView::OnInitialUpdate();

//trata das fontes para os títulos

CFont hFont;
CFont hFontForm;

hFont.CreateFont(40, 15, 0, 0, FW_BOLD ,FALSE, FALSE, 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, "MSTrebuchet");

m_stCStatic.SetFont(&hFont);
m_stCLabel.SetFont(&hFont);
m_stCMachineName.SetFont(&hFont);
m_stCTempo.SetFont(&hFont);
m_stCTempo2.SetFont(&hFont);


//cria a fonte para as letras de identificação do form

hFontForm.CreateFont(200, 14, 0, 0, 0 ,FALSE, FALSE, 0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, DEFAULT_PITCH | FF_SWISS, "MSTrebuchet");

m_stCFormName.SetFont(&hFontForm);

}

This hfontform is not used and the m_stCFormName uses the hFont, what am I doing wrong?

Thank you for your time

Rui
GeneralRe: CFont problem... Pin
Michael Dunn5-Dec-02 6:32
sitebuilderMichael Dunn5-Dec-02 6:32 
GeneralRe: CFont problem... Pin
Ruca5-Dec-02 6:48
Ruca5-Dec-02 6:48 
GeneralCHttpFile Pin
Paul M Watt5-Dec-02 6:01
mentorPaul M Watt5-Dec-02 6:01 
GeneralRe: CHttpFile Pin
sonshiro5-Dec-02 18:23
sonshiro5-Dec-02 18:23 
GeneralProbable Memory Leak Pin
Tili5-Dec-02 5:22
Tili5-Dec-02 5:22 
QuestionWhat is the difference between ... Pin
User 98855-Dec-02 5:14
User 98855-Dec-02 5:14 
AnswerRe: What is the difference between ... Pin
Maximilien5-Dec-02 5:24
Maximilien5-Dec-02 5:24 
GeneralRe: What is the difference between ... Pin
User 98855-Dec-02 5:29
User 98855-Dec-02 5:29 
GeneralRe: What is the difference between ... Pin
Maximilien5-Dec-02 5:45
Maximilien5-Dec-02 5:45 
GeneralRe: What is the difference between ... Pin
Daniel Turini5-Dec-02 6:08
Daniel Turini5-Dec-02 6:08 
GeneralRe: What is the difference between ... Pin
User 98855-Dec-02 6:11
User 98855-Dec-02 6:11 
QuestionHow to Expose two COM interfaces Pin
Alois Kraus5-Dec-02 5:08
Alois Kraus5-Dec-02 5:08 
AnswerRe: How to Expose two COM interfaces Pin
peterchen5-Dec-02 7:37
peterchen5-Dec-02 7:37 
GeneralVisible area of CDC Pin
S O S5-Dec-02 4:07
S O S5-Dec-02 4:07 
GeneralRe: Visible area of CDC Pin
Maximilien5-Dec-02 4:18
Maximilien5-Dec-02 4:18 
GeneralRe: Visible area of CDC Pin
Paul M Watt5-Dec-02 5:31
mentorPaul M Watt5-Dec-02 5:31 
GeneralRe: Visible area of CDC Pin
S O S5-Dec-02 10:04
S O S5-Dec-02 10:04 

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.