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

C / C++ / MFC

 
GeneralRe: Edit Control Problem Pin
Victor Nijegorodov20-May-16 0:23
Victor Nijegorodov20-May-16 0:23 
GeneralRe: Edit Control Problem Pin
Richard MacCutchan20-May-16 1:17
mveRichard MacCutchan20-May-16 1:17 
GeneralRe: Edit Control Problem Pin
programmingalholic21-May-16 3:54
professionalprogrammingalholic21-May-16 3:54 
QuestionRe: Edit Control Problem Pin
David Crow19-May-16 6:44
David Crow19-May-16 6:44 
AnswerRe: Edit Control Problem Pin
programmingalholic19-May-16 6:56
professionalprogrammingalholic19-May-16 6:56 
QuestionRe: Edit Control Problem Pin
David Crow19-May-16 7:38
David Crow19-May-16 7:38 
GeneralRe: Edit Control Problem Pin
Richard MacCutchan19-May-16 21:18
mveRichard MacCutchan19-May-16 21:18 
AnswerRe: Edit Control Problem Pin
Jochen Arndt19-May-16 22:45
professionalJochen Arndt19-May-16 22: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 3:49
professionalprogrammingalholic21-May-16 3:49 
QuestionConvert string name to Control ID Name Pin
002comp17-May-16 22:03
002comp17-May-16 22:03 
AnswerRe: Convert string name to Control ID Name Pin
Richard MacCutchan17-May-16 22:16
mveRichard MacCutchan17-May-16 22:16 
GeneralRe: Convert string name to Control ID Name Pin
002comp17-May-16 22:19
002comp17-May-16 22:19 
GeneralRe: Convert string name to Control ID Name Pin
Richard MacCutchan17-May-16 22:42
mveRichard MacCutchan17-May-16 22:42 
GeneralRe: Convert string name to Control ID Name Pin
leon de boer18-May-16 19:36
leon de boer18-May-16 19:36 
AnswerRe: Convert string name to Control ID Name Pin
leon de boer18-May-16 19:51
leon de boer18-May-16 19:51 
AnswerRe: Convert string name to Control ID Name Pin
Gerry Schmitz19-May-16 5:54
mveGerry Schmitz19-May-16 5:54 
SuggestionRe: Convert string name to Control ID Name Pin
Krishnakumartg21-Sep-16 19:57
Krishnakumartg21-Sep-16 19:57 
QuestionRPN notation in C Pin
Member 1252915917-May-16 6:19
Member 1252915917-May-16 6:19 
GeneralRe: RPN notation in C Pin
harold aptroot17-May-16 6:29
harold aptroot17-May-16 6:29 
GeneralRe: RPN notation in C Pin
Member 1252915917-May-16 6:57
Member 1252915917-May-16 6:57 
GeneralRe: RPN notation in C Pin
harold aptroot17-May-16 7:03
harold aptroot17-May-16 7:03 
GeneralRe: RPN notation in C Pin
jeron117-May-16 7:29
jeron117-May-16 7:29 
GeneralRe: RPN notation in C Pin
David Crow17-May-16 8:14
David Crow17-May-16 8:14 
AnswerRe: RPN notation in C Pin
Richard MacCutchan17-May-16 20:50
mveRichard MacCutchan17-May-16 20:50 
QuestionPass by pointer not working Pin
Joe Smith IX15-May-16 5:52
Joe Smith IX15-May-16 5: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.