Click here to Skip to main content
15,905,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: NEWLINE??? Pin
David Crow1-Jul-03 10:59
David Crow1-Jul-03 10:59 
AnswerRe: NEWLINE??? Pin
John M. Drescher1-Jul-03 14:23
John M. Drescher1-Jul-03 14:23 
QuestionHow to make an IE toolbar? Pin
kydfru1-Jul-03 7:59
kydfru1-Jul-03 7:59 
GeneralPutting debug info in executable Pin
Patje1-Jul-03 7:04
Patje1-Jul-03 7:04 
GeneralRe: Putting debug info in executable Pin
basementman1-Jul-03 7:39
basementman1-Jul-03 7:39 
GeneralRe: Putting debug info in executable Pin
Peter Weyzen1-Jul-03 9:39
Peter Weyzen1-Jul-03 9:39 
GeneralRe: Putting debug info in executable Pin
Toni781-Jul-03 18:52
Toni781-Jul-03 18:52 
GeneralAbout OnCtlColor Pin
olinn1-Jul-03 6:56
olinn1-Jul-03 6:56 
I want a button to diplay the red text sometime, so I create a class derived from CButton and override the OnCtlColor handler, as below:

HBRUSH CColorButton::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
HBRUSH hbr = CButton::OnCtlColor(pDC, pWnd, nCtlColor);
if(m_iFlag == 1)
pDC->SetTextColor(0x000000ff);
return hbr;
}

but I found the handler didn't be executed even when the dialog initialized,
How can I do the work I want.
Thanx.
GeneralRe: About OnCtlColor Pin
Joaquín M López Muñoz1-Jul-03 10:12
Joaquín M López Muñoz1-Jul-03 10:12 
GeneralRe: About OnCtlColor Pin
olinn1-Jul-03 15:41
olinn1-Jul-03 15:41 
GeneralRe: About OnCtlColor Pin
Ryan Binns1-Jul-03 15:53
Ryan Binns1-Jul-03 15:53 
GeneralRe: About OnCtlColor Pin
olinn1-Jul-03 16:26
olinn1-Jul-03 16:26 
GeneralRe: About OnCtlColor Pin
Ryan Binns1-Jul-03 19:04
Ryan Binns1-Jul-03 19:04 
GeneralRe: About OnCtlColor Pin
RChin1-Jul-03 23:15
RChin1-Jul-03 23:15 
QuestionIs it .Net or Vc++ 6.0? Pin
Anonymous1-Jul-03 6:52
Anonymous1-Jul-03 6:52 
AnswerRe: Is it .Net or Vc++ 6.0? Pin
basementman1-Jul-03 7:42
basementman1-Jul-03 7:42 
GeneralRetrieving file name and path from Office applications Pin
Member 3600821-Jul-03 6:09
Member 3600821-Jul-03 6:09 
Generalgetting file property, help help help Pin
pnpfriend1-Jul-03 5:51
pnpfriend1-Jul-03 5:51 
GeneralRe: getting file property, help help help Pin
David Crow1-Jul-03 6:05
David Crow1-Jul-03 6:05 
GeneralRe: getting file property, help help help Pin
Peter Weyzen1-Jul-03 9:43
Peter Weyzen1-Jul-03 9:43 
GeneralRe: getting file property, help help help Pin
pnpfriend1-Jul-03 10:52
pnpfriend1-Jul-03 10:52 
GeneralRe: getting file property, help help help Pin
Peter Weyzen1-Jul-03 11:35
Peter Weyzen1-Jul-03 11:35 
GeneralRe: getting file property, help help help Pin
David Crow12-Sep-03 9:36
David Crow12-Sep-03 9:36 
Generalcreating an array of structures Pin
johnstonsk1-Jul-03 5:44
johnstonsk1-Jul-03 5:44 
GeneralRe: creating an array of structures Pin
Manfred Staiger1-Jul-03 5:59
Manfred Staiger1-Jul-03 5:59 

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.