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

C / C++ / MFC

 
GeneralRe: Anchor property Pin
Mazdak6-Mar-02 0:28
Mazdak6-Mar-02 0:28 
Questionhow to determine current authentication? Pin
AJ Weber5-Mar-02 2:39
AJ Weber5-Mar-02 2:39 
AnswerRe: how to determine current authentication? Pin
Mazdak5-Mar-02 2:49
Mazdak5-Mar-02 2:49 
GeneralRe: how to determine current authentication? Pin
AJ Weber5-Mar-02 3:09
AJ Weber5-Mar-02 3:09 
GeneralRe: how to determine current authentication? Pin
Tomasz Sowinski5-Mar-02 3:27
Tomasz Sowinski5-Mar-02 3:27 
GeneralRe: how to determine current authentication? Pin
AJ Weber5-Mar-02 4:28
AJ Weber5-Mar-02 4:28 
GeneralMove cursor pos into CEdit Pin
5-Mar-02 2:33
suss5-Mar-02 2:33 
GeneralRe: Move cursor pos into CEdit Pin
Ravi Bhavnani5-Mar-02 2:50
professionalRavi Bhavnani5-Mar-02 2:50 
Assuming you've set focus to the edit control (by calling SetFocus()), you should be able to select an empty portion of the text (starting at the location of interest) using SetSel(). So, to position the cursor at the 3rd char, try:
CEdit* pEdit = (CEdit *) GetDlgItem (IDC_EDIT);
ASSERT (pEdit != NULL);
pEdit->SetFocus();
pEdit->SetSel (2, 2, TRUE);
/ravi

"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
QuestionBest way to prevent frame resizing? Pin
Richard Everingham5-Mar-02 1:49
Richard Everingham5-Mar-02 1:49 
AnswerRe: Best way to prevent frame resizing? Pin
Tim Smith5-Mar-02 2:02
Tim Smith5-Mar-02 2:02 
AnswerRe: Best way to prevent frame resizing? Pin
Joaquín M López Muñoz5-Mar-02 2:09
Joaquín M López Muñoz5-Mar-02 2:09 
GeneralRe: Best way to prevent frame resizing? Pin
Richard Everingham5-Mar-02 2:11
Richard Everingham5-Mar-02 2:11 
GeneralRe: Best way to prevent frame resizing? Pin
Tim Smith5-Mar-02 3:50
Tim Smith5-Mar-02 3:50 
AnswerRe: Best way to prevent frame resizing? Pin
Michael P Butler5-Mar-02 2:09
Michael P Butler5-Mar-02 2:09 
GeneralSpin Control Pin
Daniel Visan4-Mar-02 23:55
Daniel Visan4-Mar-02 23:55 
GeneralRe: Spin Control Pin
Roger Allen5-Mar-02 1:49
Roger Allen5-Mar-02 1:49 
Generala non understandable debug error! Pin
Gérald Mercet4-Mar-02 22:58
Gérald Mercet4-Mar-02 22:58 
GeneralRe: a non understandable debug error! Pin
Joaquín M López Muñoz4-Mar-02 23:03
Joaquín M López Muñoz4-Mar-02 23:03 
GeneralRe: a non understandable debug error! Pin
Gérald Mercet4-Mar-02 23:09
Gérald Mercet4-Mar-02 23:09 
GeneralRe: a non understandable debug error! Pin
Joaquín M López Muñoz4-Mar-02 23:17
Joaquín M López Muñoz4-Mar-02 23:17 
GeneralRe: a non understandable debug error! Pin
Felix Cho5-Mar-02 2:40
Felix Cho5-Mar-02 2:40 
GeneralRe: a non understandable debug error! Pin
Gérald Mercet5-Mar-02 4:04
Gérald Mercet5-Mar-02 4:04 
Generalanother debug error! Pin
Gérald Mercet5-Mar-02 4:52
Gérald Mercet5-Mar-02 4:52 
GeneralRe: a non understandable debug error! Pin
Nish Nishant4-Mar-02 23:08
sitebuilderNish Nishant4-Mar-02 23:08 
GeneralClear BREAK queu signal on serial port Pin
dejan.n4-Mar-02 22:57
dejan.n4-Mar-02 22:57 

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.