Click here to Skip to main content
15,907,497 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionUnloading a DLL Pin
Jagadeesh VN27-Dec-05 19:53
Jagadeesh VN27-Dec-05 19:53 
AnswerRe: Unloading a DLL Pin
Prakash Nadar27-Dec-05 21:28
Prakash Nadar27-Dec-05 21:28 
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 
I am wrtting a text input dialog using CRichEditCtrl, the following code are used to change font
void CDialogText::ChangeFont()
{
CHARFORMAT cf;
m_reText.GetSelectionCharFormat(cf); //m_reText is the CRichEdit Control
cf.dwMask = CFM_FACE;
CString strFaceName;
UINT nIndex = m_cbFamily.GetCurSel();
m_cbFamily.GetLBText(nIndex, strFaceName); //m_cbFamily is a ComboBox, list all installed fonts
lstrcpy(cf.szFaceName,(LPCTSTR)strFaceName);
m_reText.SetSelectionCharFormat(cf);
m_reText.SetFocus();
}

My problem is , when I selected some text in RichEdit , the function works ok.
But if I didn't selected any text, then select a new font. The new font can't affect the following text I input. Anyone could tell me how to solve the problem? Thank you!

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 
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 

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.