Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to close a pop-up menu Pin
Iain Clarke, Warrior Programmer26-Sep-06 6:10
Iain Clarke, Warrior Programmer26-Sep-06 6:10 
QuestionException Handling Pin
Nyarlatotep13-Sep-06 22:34
Nyarlatotep13-Sep-06 22:34 
AnswerRe: Exception Handling Pin
Naveen13-Sep-06 23:03
Naveen13-Sep-06 23:03 
QuestionHow to screen the Esc-key-pressed event for a print preview view Pin
min_2_max13-Sep-06 22:12
min_2_max13-Sep-06 22:12 
Questionrich edit control query Pin
harsha_123413-Sep-06 21:39
harsha_123413-Sep-06 21:39 
AnswerRe: rich edit control query Pin
_AnsHUMAN_ 13-Sep-06 22:09
_AnsHUMAN_ 13-Sep-06 22:09 
GeneralRe: rich edit control query Pin
harsha_123413-Sep-06 22:19
harsha_123413-Sep-06 22:19 
GeneralRe: rich edit control query [modified] Pin
_AnsHUMAN_ 13-Sep-06 22:51
_AnsHUMAN_ 13-Sep-06 22:51 
harsha_1234 wrote:
what i want to do is that if i have a character and the caret position that is going to tell me where to insert that character then i will do

CPoint pt=m_richedit.GetCaretPos ();
int i=m_richedit.CharFromPos (pt);
CHARRANGE chRange;                     // comment this line
chRange.cpMin =i;                      // comment this line
chRange.cpMax =i;                      // comment this line
m_richedit.SetSel (chRange);           // m_richedit.SetSel(i,i);  
m_richedit.ReplaceSel ("/");           // will also work

I hope this helps and fits your requirement.


-- modified at 5:01 Thursday 14th September, 2006

Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

GeneralRe: rich edit control query Pin
harsha_123413-Sep-06 23:05
harsha_123413-Sep-06 23:05 
AnswerRe: rich edit control query Pin
Cedric Moonen13-Sep-06 22:14
Cedric Moonen13-Sep-06 22:14 
GeneralRe: rich edit control query Pin
harsha_123413-Sep-06 22:40
harsha_123413-Sep-06 22:40 
AnswerRe: rich edit control query Pin
Akt_4_U13-Sep-06 22:28
Akt_4_U13-Sep-06 22:28 
GeneralRe: rich edit control query Pin
Akt_4_U13-Sep-06 22:31
Akt_4_U13-Sep-06 22:31 
Questiondownload Turbo c compiler [modified] Pin
hiral_shah13-Sep-06 21:35
hiral_shah13-Sep-06 21:35 
QuestionFor downloading TC compiler for 64 bit Pin
alpa shah13-Sep-06 21:18
alpa shah13-Sep-06 21:18 
QuestionConverting BMP Image to PNG and JPEG format Image Pin
dinesh_IP13-Sep-06 21:17
dinesh_IP13-Sep-06 21:17 
AnswerRe: Converting BMP Image to PNG and JPEG format Image Pin
Hamid_RT13-Sep-06 21:20
Hamid_RT13-Sep-06 21:20 
AnswerRe: Converting BMP Image to PNG and JPEG format Image Pin
mostafa_pasha14-Sep-06 2:11
mostafa_pasha14-Sep-06 2:11 
QuestionWindows OS - how to detect that system shutdown command issued? Pin
aviadc13-Sep-06 21:07
aviadc13-Sep-06 21:07 
AnswerRe: Windows OS - how to detect that system shutdown command issued? Pin
Michael Dunn13-Sep-06 21:14
sitebuilderMichael Dunn13-Sep-06 21:14 
GeneralRe: Windows OS - how to detect that system shutdown command issued? Pin
aviadc13-Sep-06 21:24
aviadc13-Sep-06 21:24 
GeneralRe: Windows OS - how to detect that system shutdown command issued? Pin
Michael Dunn13-Sep-06 21:33
sitebuilderMichael Dunn13-Sep-06 21:33 
GeneralRe: Windows OS - how to detect that system shutdown command issued? Pin
aviadc24-Sep-06 22:00
aviadc24-Sep-06 22:00 
QuestionUpload files? Pin
Larsson13-Sep-06 21:00
Larsson13-Sep-06 21:00 
AnswerRe: Upload files? Pin
Naveen13-Sep-06 23:27
Naveen13-Sep-06 23:27 

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.