Click here to Skip to main content
16,013,918 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String conversion Pin
Cedric Moonen15-Jun-04 23:49
Cedric Moonen15-Jun-04 23:49 
GeneralRe: String conversion Pin
Rodrigo Pinto Pereira de Souza16-Jun-04 7:11
Rodrigo Pinto Pereira de Souza16-Jun-04 7:11 
GeneralCEdit.SetWindowText(...); Pin
V.15-Jun-04 22:36
professionalV.15-Jun-04 22:36 
GeneralRe: CEdit.SetWindowText(...); Pin
Dominik Reichl15-Jun-04 22:49
Dominik Reichl15-Jun-04 22:49 
GeneralRe: CEdit.SetWindowText(...); Pin
V.15-Jun-04 22:57
professionalV.15-Jun-04 22:57 
GeneralRe: CEdit.SetWindowText(...); Pin
Weiye Chen15-Jun-04 23:45
Weiye Chen15-Jun-04 23:45 
GeneralRe: CEdit.SetWindowText(...); Pin
V.15-Jun-04 23:52
professionalV.15-Jun-04 23:52 
GeneralRe: CEdit.SetWindowText(...); Pin
Dominik Reichl15-Jun-04 23:57
Dominik Reichl15-Jun-04 23:57 
It must be something other then.

I tried this in a test project:

CString str = _T("Test");<br />
m_cEdit.SetWindowText(str);<br />
int nPos = str.GetLength();<br />
m_cEdit.SetSel(nPos, nPos, TRUE);<br />
m_cEdit.SetFocus();


And it does exactly what you want. "Test" is written into the edit control and the cursor is at the end, nothing is selected.

Maybe check for other things that could influence the selection and focus (UpdateData, returning FALSE in OnInitDialog, and all those things)

Best regards,
Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

GeneralRe: CEdit.SetWindowText(...); Pin
V.16-Jun-04 1:55
professionalV.16-Jun-04 1:55 
QuestionHow do I load a dll from within a dll. Pin
Member 114349815-Jun-04 22:16
Member 114349815-Jun-04 22:16 
AnswerRe: How do I load a dll from within a dll. Pin
Blake Miller16-Jun-04 13:50
Blake Miller16-Jun-04 13:50 
GeneralRe: How do I load a dll from within a dll. Pin
Member 114349817-Jun-04 21:41
Member 114349817-Jun-04 21:41 
GeneralRe: How do I load a dll from within a dll. Pin
Blake Miller18-Jun-04 4:16
Blake Miller18-Jun-04 4:16 
GeneralRe: How do I load a dll from within a dll. Pin
Member 114349820-Jun-04 21:07
Member 114349820-Jun-04 21:07 
GeneralVC++ Macros Reference (VB) Pin
Archer28215-Jun-04 21:39
Archer28215-Jun-04 21:39 
GeneralRe: VC++ Macros Reference (VB) Pin
Kevin McFarlane16-Jun-04 0:11
Kevin McFarlane16-Jun-04 0:11 
GeneralRe: VC++ Macros Reference (VB) Pin
Archer28216-Jun-04 10:05
Archer28216-Jun-04 10:05 
GeneralRe: VC++ Macros Reference (VB) Pin
Kevin McFarlane16-Jun-04 11:53
Kevin McFarlane16-Jun-04 11:53 
GeneralCOM newbie - ITaskbarList problem Pin
Kri515-Jun-04 21:35
Kri515-Jun-04 21:35 
GeneralDynamic creation of controls and getting messages Pin
grinder15-Jun-04 21:26
grinder15-Jun-04 21:26 
GeneralRe: Dynamic creation of controls and getting messages Pin
Johan Rosengren15-Jun-04 22:11
Johan Rosengren15-Jun-04 22:11 
GeneralRe: Dynamic creation of controls and getting messages Pin
grinder16-Jun-04 1:45
grinder16-Jun-04 1:45 
GeneralRe: Dynamic creation of controls and getting messages Pin
Johan Rosengren16-Jun-04 2:01
Johan Rosengren16-Jun-04 2:01 
GeneralCOM port Programming Pin
Zeeshan Bilal15-Jun-04 21:20
Zeeshan Bilal15-Jun-04 21:20 
GeneralVolume Shadow Copy Services Pin
Pradeep Manohar15-Jun-04 21:13
Pradeep Manohar15-Jun-04 21:13 

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.