Click here to Skip to main content
14,767,785 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Edit Control Problem Pin
Victor Nijegorodov20-May-16 1:23
MemberVictor Nijegorodov20-May-16 1:23 
GeneralRe: Edit Control Problem Pin
Richard MacCutchan20-May-16 2:17
mveRichard MacCutchan20-May-16 2:17 
GeneralRe: Edit Control Problem Pin
programmingalholic21-May-16 4:54
professionalprogrammingalholic21-May-16 4:54 
QuestionRe: Edit Control Problem Pin
David Crow19-May-16 7:44
MemberDavid Crow19-May-16 7:44 
AnswerRe: Edit Control Problem Pin
programmingalholic19-May-16 7:56
professionalprogrammingalholic19-May-16 7:56 
QuestionRe: Edit Control Problem Pin
David Crow19-May-16 8:38
MemberDavid Crow19-May-16 8:38 
GeneralRe: Edit Control Problem Pin
Richard MacCutchan19-May-16 22:18
mveRichard MacCutchan19-May-16 22:18 
AnswerRe: Edit Control Problem Pin
Jochen Arndt19-May-16 23:45
professionalJochen Arndt19-May-16 23:45 
The default behaviour of edit controls is showing the selection only when the control has the focus. From your description I assume that another control (the search input field or a button) has the focus when you try to set the selection.

But there is an option to show the selection even when the edit control does not have the focus: ES_NOHIDESEL[^].

Unfortunately the style can't be changed once the control exists. You have to set it when creating the edit control. If it is defined as static resource, set the option there (e.g. using the resource editor). For dynamically created edit controls pass the flag in the style parameter when calling CreateWindow or CreateWindowEx.
GeneralRe: Edit Control Problem Pin
programmingalholic21-May-16 4:49
professionalprogrammingalholic21-May-16 4:49 
QuestionConvert string name to Control ID Name Pin
002comp17-May-16 23:03
Member002comp17-May-16 23:03 
AnswerRe: Convert string name to Control ID Name Pin
Richard MacCutchan17-May-16 23:16
mveRichard MacCutchan17-May-16 23:16 
GeneralRe: Convert string name to Control ID Name Pin
002comp17-May-16 23:19
Member002comp17-May-16 23:19 
GeneralRe: Convert string name to Control ID Name Pin
Richard MacCutchan17-May-16 23:42
mveRichard MacCutchan17-May-16 23:42 
GeneralRe: Convert string name to Control ID Name Pin
leon de boer18-May-16 20:36
Memberleon de boer18-May-16 20:36 
AnswerRe: Convert string name to Control ID Name Pin
leon de boer18-May-16 20:51
Memberleon de boer18-May-16 20:51 
AnswerRe: Convert string name to Control ID Name Pin
Gerry Schmitz19-May-16 6:54
mveGerry Schmitz19-May-16 6:54 
SuggestionRe: Convert string name to Control ID Name Pin
Krishnakumartg21-Sep-16 20:57
MemberKrishnakumartg21-Sep-16 20:57 
QuestionRPN notation in C Pin
Member 1252915917-May-16 7:19
MemberMember 1252915917-May-16 7:19 
GeneralRe: RPN notation in C Pin
harold aptroot17-May-16 7:29
Memberharold aptroot17-May-16 7:29 
GeneralRe: RPN notation in C Pin
Member 1252915917-May-16 7:57
MemberMember 1252915917-May-16 7:57 
GeneralRe: RPN notation in C Pin
harold aptroot17-May-16 8:03
Memberharold aptroot17-May-16 8:03 
GeneralRe: RPN notation in C Pin
jeron117-May-16 8:29
Memberjeron117-May-16 8:29 
GeneralRe: RPN notation in C Pin
David Crow17-May-16 9:14
MemberDavid Crow17-May-16 9:14 
AnswerRe: RPN notation in C Pin
Richard MacCutchan17-May-16 21:50
mveRichard MacCutchan17-May-16 21:50 
QuestionPass by pointer not working Pin
Joe Smith IX15-May-16 6:52
MemberJoe Smith IX15-May-16 6:52 

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.