Click here to Skip to main content
15,911,848 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: whats COM PORT Pin
Iain Clarke, Warrior Programmer5-Dec-08 7:25
Iain Clarke, Warrior Programmer5-Dec-08 7:25 
GeneralRe: whats COM PORT Pin
Cedric Moonen5-Dec-08 7:20
Cedric Moonen5-Dec-08 7:20 
GeneralRe: whats COM PORT Pin
Iain Clarke, Warrior Programmer5-Dec-08 7:23
Iain Clarke, Warrior Programmer5-Dec-08 7:23 
GeneralRe: whats COM PORT Pin
CPallini5-Dec-08 7:47
mveCPallini5-Dec-08 7:47 
QuestionStarnge CButton::SetFont() behavior Pin
josip cagalj5-Dec-08 6:11
josip cagalj5-Dec-08 6:11 
AnswerRe: Starnge CButton::SetFont() behavior Pin
CPallini5-Dec-08 7:13
mveCPallini5-Dec-08 7:13 
GeneralRe: Starnge CButton::SetFont() behavior Pin
josip cagalj7-Dec-08 22:18
josip cagalj7-Dec-08 22:18 
AnswerRe: Starnge CButton::SetFont() behavior Pin
Iain Clarke, Warrior Programmer5-Dec-08 7:17
Iain Clarke, Warrior Programmer5-Dec-08 7:17 
Well, are you getting any errors along the way?

does the ncm block get filled with sensible values?

Is MaliFont getting a good m_hFont?

And (my suspicion) is MaliFont created only on the stack in the member function you are cutting and pasting code from? If so, its destructor will be called, destroying the font before the button control even tries to use it...

Maybe make it a member object of some dialog class that contains the m_Graph object?

Iain.

Edit:
Or C Pallini is correct and you're not using GetFont in your owner draw routines to actually USE the font you set...
JokeRe: Starnge CButton::SetFont() behavior Pin
CPallini5-Dec-08 7:52
mveCPallini5-Dec-08 7:52 
GeneralRe: Starnge CButton::SetFont() behavior Pin
Iain Clarke, Warrior Programmer5-Dec-08 7:57
Iain Clarke, Warrior Programmer5-Dec-08 7:57 
JokeRe: Starnge CButton::SetFont() behavior Pin
CPallini5-Dec-08 8:27
mveCPallini5-Dec-08 8:27 
GeneralRe: Starnge CButton::SetFont() behavior Pin
josip cagalj7-Dec-08 22:15
josip cagalj7-Dec-08 22:15 
GeneralRe: Starnge CButton::SetFont() behavior Pin
Iain Clarke, Warrior Programmer7-Dec-08 23:09
Iain Clarke, Warrior Programmer7-Dec-08 23:09 
QuestionApplication compiled on Visual Studio 2003 crashes in Vista 32bit (on a 64 bit processor) Pin
Kartik Sura5-Dec-08 2:03
Kartik Sura5-Dec-08 2:03 
AnswerRe: Application compiled on Visual Studio 2003 crashes in Vista 32bit (on a 64 bit processor) Pin
Jijo.Raj5-Dec-08 3:03
Jijo.Raj5-Dec-08 3:03 
AnswerRe: Application compiled on Visual Studio 2003 crashes in Vista 32bit (on a 64 bit processor) Pin
Stuart Dootson5-Dec-08 5:17
professionalStuart Dootson5-Dec-08 5:17 
Questioncan't use FILETIME while writting idl file . Pin
vijay_k5-Dec-08 1:48
vijay_k5-Dec-08 1:48 
AnswerRe: can't use FILETIME while writting idl file . Pin
Marcelo Emmerich5-Dec-08 2:10
Marcelo Emmerich5-Dec-08 2:10 
AnswerRe: can't use FILETIME while writting idl file . Pin
Stuart Dootson5-Dec-08 5:24
professionalStuart Dootson5-Dec-08 5:24 
QuestionBuild Set up problem Pin
SNI5-Dec-08 1:47
SNI5-Dec-08 1:47 
AnswerRe: Build Set up problem Pin
Iain Clarke, Warrior Programmer5-Dec-08 7:20
Iain Clarke, Warrior Programmer5-Dec-08 7:20 
GeneralRe: Build Set up problem Pin
SNI11-Dec-08 1:25
SNI11-Dec-08 1:25 
QuestionLogin Dialog Probelm Pin
MsmVc5-Dec-08 1:25
MsmVc5-Dec-08 1:25 
AnswerRe: Login Dialog Probelm Pin
Code-o-mat5-Dec-08 1:40
Code-o-mat5-Dec-08 1:40 
GeneralRe: Login Dialog Probelm Pin
MsmVc5-Dec-08 1:47
MsmVc5-Dec-08 1:47 

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.