Click here to Skip to main content
15,899,754 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: excel API Pin
David Crow10-Oct-08 3:29
David Crow10-Oct-08 3:29 
QuestionEnumDisplayMonitors Pin
daavena10-Oct-08 0:39
daavena10-Oct-08 0:39 
QuestionRe: EnumDisplayMonitors Pin
Roger Stoltz10-Oct-08 1:36
Roger Stoltz10-Oct-08 1:36 
AnswerRe: EnumDisplayMonitors Pin
daavena10-Oct-08 1:53
daavena10-Oct-08 1:53 
Questionswitching from 1 dialog box to another dialog box Pin
puppya9-Oct-08 23:57
puppya9-Oct-08 23:57 
AnswerRe: switching from 1 dialog box to another dialog box Pin
_AnsHUMAN_ 10-Oct-08 1:27
_AnsHUMAN_ 10-Oct-08 1:27 
AnswerRe: switching from 1 dialog box to another dialog box Pin
David Crow10-Oct-08 3:52
David Crow10-Oct-08 3:52 
QuestionUsing C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. [modified] Pin
M Kishore9-Oct-08 23:40
M Kishore9-Oct-08 23:40 
Hi,
Using C++ code, I could not place the flashing caret at the beginning of the Single Line Edit Box after selecting the whole text in it.

In the function
void SetSel(int nStartChar,int nEndChar,BOOL bNoScroll = FALSE );
of CEdit class, the start and end character positions can be given to select some part of the whole text. For full selection, we need to use as SetSel(0, -1);. In both cases, the flashing caret is always at the end of the selection irrespective of the order of the start and end positions in the above function.

In the description of EM_SETSEL Message, I found the below mentioned point.
"The control displays a flashing caret at the end position regardless of the relative values of start and end."

Could anyone help me in this regard.

Thanks,
Kishore

modified on Friday, October 10, 2008 6:54 AM

QuestionRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
Mark Salsbery10-Oct-08 4:56
Mark Salsbery10-Oct-08 4:56 
AnswerRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
M Kishore12-Oct-08 23:13
M Kishore12-Oct-08 23:13 
GeneralRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
Mark Salsbery13-Oct-08 6:16
Mark Salsbery13-Oct-08 6:16 
QuestionRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
David Crow10-Oct-08 5:20
David Crow10-Oct-08 5:20 
AnswerRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
M Kishore15-Oct-08 3:40
M Kishore15-Oct-08 3:40 
QuestionRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
David Crow15-Oct-08 3:56
David Crow15-Oct-08 3:56 
AnswerRe: Using C++, Caret to be at the beginning in Single Line Edit box after selecting whole text. Pin
M Kishore16-Oct-08 3:16
M Kishore16-Oct-08 3:16 
QuestionRun Application in Background Pin
MsmVc9-Oct-08 23:22
MsmVc9-Oct-08 23:22 
AnswerRe: Run Application in Background Pin
Michael Schubert9-Oct-08 23:26
Michael Schubert9-Oct-08 23:26 
AnswerRe: Run Application in Background Pin
Hamid_RT11-Oct-08 19:16
Hamid_RT11-Oct-08 19:16 
GeneralRe: Run Application in Background [modified] Pin
MsmVc12-Oct-08 19:45
MsmVc12-Oct-08 19:45 
GeneralRe: Run Application in Background Pin
Hamid_RT13-Oct-08 7:40
Hamid_RT13-Oct-08 7:40 
Questiondisplaying menu bar on dialog box Pin
puppya9-Oct-08 22:43
puppya9-Oct-08 22:43 
AnswerRe: displaying menu bar on dialog box Pin
Michael Schubert9-Oct-08 23:18
Michael Schubert9-Oct-08 23:18 
GeneralRe: displaying menu bar on dialog box Pin
puppya10-Oct-08 0:10
puppya10-Oct-08 0:10 
Questionsize_t Pin
George_George9-Oct-08 22:06
George_George9-Oct-08 22:06 
AnswerRe: size_t Pin
Maximilien10-Oct-08 2:59
Maximilien10-Oct-08 2:59 

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.