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

C / C++ / MFC

 
Questionsingleton inheritance Pin
Krishnatv24-May-06 19:55
Krishnatv24-May-06 19:55 
AnswerRe: singleton inheritance Pin
Nibu babu thomas24-May-06 20:16
Nibu babu thomas24-May-06 20:16 
QuestionCRichEditCtrl Pin
VinayCool24-May-06 19:47
VinayCool24-May-06 19:47 
AnswerRe: CRichEditCtrl Pin
Nibu babu thomas24-May-06 20:25
Nibu babu thomas24-May-06 20:25 
AnswerRe: CRichEditCtrl Pin
Steve Echols24-May-06 20:30
Steve Echols24-May-06 20:30 
GeneralRe: CRichEditCtrl Pin
VinayCool24-May-06 20:44
VinayCool24-May-06 20:44 
GeneralRe: CRichEditCtrl [modified] Pin
Steve Echols24-May-06 21:05
Steve Echols24-May-06 21:05 
GeneralRe: CRichEditCtrl [modified] Pin
VinayCool24-May-06 21:37
VinayCool24-May-06 21:37 
Hi Steve Echols,

Thank for helping me for completing my project.

Code is working i declared these vaiables

char word_position[50];
char word_length[50];

Steve how to pass the word ??? where i ahve to pass the word which has to be highlighted ??

I have stored the word here which has to be hightlighted

w = m_WORD;

----------------------------------

<code>CHARFORMAT cf;
memset(&cf, 0, sizeof(CHARFORMAT));
cf.cbSize = sizeof(CHARFORMAT);
cf.dwMask = CFM_BOLD;
cf.dwEffects = CFE_BOLD;

UpdateData(TRUE);
CString w;
w = m_WORD;
int len = strlen(word);

char word_position[50];
char word_length[50];

// **** pseudo-code ****
for (int p = 0; p < len ; p++)
{
m_FCONT.SetSel(word_position[p], word_length[p]);
m_FCONT.SetSelectionCharFormat(cf);
}</code>

Regards,
Vinay Charan.
AnswerRe: CRichEditCtrl Pin
_anil_24-May-06 20:36
_anil_24-May-06 20:36 
GeneralRe: CRichEditCtrl Pin
VinayCool24-May-06 20:46
VinayCool24-May-06 20:46 
AnswerRe: CRichEditCtrl Pin
NiceNaidu24-May-06 20:40
NiceNaidu24-May-06 20:40 
GeneralRe: CRichEditCtrl Pin
VinayCool24-May-06 20:48
VinayCool24-May-06 20:48 
AnswerRe: CRichEditCtrl Pin
Hamid_RT24-May-06 20:53
Hamid_RT24-May-06 20:53 
QuestionOverwrite message box while using SHFileOperation to copy a file Pin
zahid_ash24-May-06 19:41
zahid_ash24-May-06 19:41 
AnswerRe: Overwrite message box while using SHFileOperation to copy a file Pin
Hamid_RT24-May-06 20:04
Hamid_RT24-May-06 20:04 
GeneralRe: Overwrite message box while using SHFileOperation to copy a file Pin
zahid_ash24-May-06 20:09
zahid_ash24-May-06 20:09 
GeneralRe: Overwrite message box while using SHFileOperation to copy a file Pin
Nibu babu thomas24-May-06 20:14
Nibu babu thomas24-May-06 20:14 
QuestionBase64String Pin
satsumatable24-May-06 19:24
satsumatable24-May-06 19:24 
Questionhow to get the return value when we select a checkbox Pin
keerthikaaa24-May-06 19:21
keerthikaaa24-May-06 19:21 
AnswerRe: how to get the return value when we select a checkbox Pin
_anil_24-May-06 19:40
_anil_24-May-06 19:40 
AnswerRe: how to get the return value when we select a checkbox Pin
NiceNaidu24-May-06 19:57
NiceNaidu24-May-06 19:57 
QuestionSafeArray Pin
satsumatable24-May-06 17:51
satsumatable24-May-06 17:51 
QuestionMpeg Decoder Pin
jayashri200624-May-06 16:26
jayashri200624-May-06 16:26 
QuestionGetWindowText [modified] Pin
Sam 200624-May-06 15:13
Sam 200624-May-06 15:13 
AnswerRe: GetWindowText [modified] Pin
_anil_24-May-06 15:48
_anil_24-May-06 15:48 

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.