Click here to Skip to main content
16,005,389 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionReparse points Pin
kmr.girish27-Dec-05 19:47
kmr.girish27-Dec-05 19:47 
QuestionHow to include my lib file in the vc++.net 7.0 environment Pin
G Haranadh27-Dec-05 19:09
G Haranadh27-Dec-05 19:09 
AnswerRe: How to include my lib file in the vc++.net 7.0 environment Pin
Owner drawn27-Dec-05 19:13
Owner drawn27-Dec-05 19:13 
GeneralRe: How to include my lib file in the vc++.net 7.0 environment Pin
G Haranadh27-Dec-05 19:24
G Haranadh27-Dec-05 19:24 
AnswerRe: How to include my lib file in the vc++.net 7.0 environment Pin
Abhi Lahare27-Dec-05 19:18
Abhi Lahare27-Dec-05 19:18 
QuestionWhy I can't change font in CRichEditCtrl Pin
Frankdou27-Dec-05 18:40
Frankdou27-Dec-05 18:40 
AnswerRe: Why I can't change font in CRichEditCtrl Pin
Owner drawn27-Dec-05 19:11
Owner drawn27-Dec-05 19:11 
AnswerRe: Why I can't change font in CRichEditCtrl Pin
Mark F.28-Dec-05 3:37
Mark F.28-Dec-05 3:37 
Call
m_reText.Invalidate();
which will update the window.

You can also do it this way...

<code>    CFont pNewFont;
    LOGFONT lf2;
    memset(&lf2, 0, sizeof(LOGFONT));
    
    strcpy(lf2.lfFaceName, "Times New Roman");  // your fontname
    lf2.lfHeight = 120;                         // # points * 10
    lf2.lfWeight = FW_NORMAL;
    pNewFont.CreatePointFontIndirect(&lf2);     // point font for ctrls
    m_cRichEdit.SetFont(&pNewFont);
    pNewFont.Detach();

    m_cRichEdit.Invalidate();                   // force update
</code>


Hope this helps.
Mark

-- modified at 9:39 Wednesday 28th December, 2005
GeneralRe: Why I can't change font in CRichEditCtrl Pin
Frankdou29-Dec-05 13:59
Frankdou29-Dec-05 13:59 
Question++i and i++ Pin
Nishad S27-Dec-05 18:35
Nishad S27-Dec-05 18:35 
AnswerRe: ++i and i++ Pin
G Haranadh27-Dec-05 18:49
G Haranadh27-Dec-05 18:49 
GeneralRe: ++i and i++ Pin
Nishad S27-Dec-05 20:09
Nishad S27-Dec-05 20:09 
GeneralRe: ++i and i++ Pin
G Haranadh27-Dec-05 20:15
G Haranadh27-Dec-05 20:15 
GeneralRe: ++i and i++ Pin
S. Senthil Kumar27-Dec-05 21:19
S. Senthil Kumar27-Dec-05 21:19 
AnswerRe: ++i and i++ Pin
S. Senthil Kumar27-Dec-05 18:49
S. Senthil Kumar27-Dec-05 18:49 
AnswerRe: ++i and i++ Pin
John M. Drescher27-Dec-05 18:52
John M. Drescher27-Dec-05 18:52 
GeneralRe: ++i and i++ Pin
Nishad S27-Dec-05 20:09
Nishad S27-Dec-05 20:09 
AnswerRe: ++i and i++ Pin
Owner drawn27-Dec-05 18:52
Owner drawn27-Dec-05 18:52 
AnswerRe: ++i and i++ Pin
vikas amin27-Dec-05 19:18
vikas amin27-Dec-05 19:18 
GeneralRe: ++i and i++ Pin
Nishad S27-Dec-05 20:10
Nishad S27-Dec-05 20:10 
GeneralRe: ++i and i++ Pin
segment_fault3-Jan-06 17:54
segment_fault3-Jan-06 17:54 
GeneralRe: ++i and i++ Pin
Nishad S27-Dec-05 20:11
Nishad S27-Dec-05 20:11 
AnswerRe: ++i and i++ Pin
Prakash Nadar27-Dec-05 21:42
Prakash Nadar27-Dec-05 21:42 
GeneralRe: ++i and i++ Pin
Nishad S27-Dec-05 21:52
Nishad S27-Dec-05 21:52 
GeneralRe: ++i and i++ Pin
vikas amin27-Dec-05 22:01
vikas amin27-Dec-05 22:01 

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.