Click here to Skip to main content
15,888,984 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery12-Nov-08 10:51
Mark Salsbery12-Nov-08 10:51 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal12-Nov-08 11:24
AmVal12-Nov-08 11:24 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery12-Nov-08 12:04
Mark Salsbery12-Nov-08 12:04 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal13-Nov-08 2:51
AmVal13-Nov-08 2:51 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery13-Nov-08 6:25
Mark Salsbery13-Nov-08 6:25 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
AmVal17-Nov-08 4:30
AmVal17-Nov-08 4:30 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery17-Nov-08 4:34
Mark Salsbery17-Nov-08 4:34 
GeneralRe: How to select an initial entry when Virtual List is first displayed? Pin
Mark Salsbery12-Nov-08 7:35
Mark Salsbery12-Nov-08 7:35 
You can also do this:

//GotoDlgCtrl(&MyList_);
MyList_.SetItemState(0, LVIS_SELECTED, LVIS_SELECTED);
GotoDlgCtrl(&MyEdit_); // optional - if you want initial focus on the edit control

It seems you can't set LVIS_FOCUSED unless the control has focus.
And if the control doesn't have focus and you try to specify LVIS_SELECTED | LVIS_FOCUSED,
it doesn't set either state Smile | :)

Good to know!

Mark

Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

QuestionException problem Pin
rrrado11-Nov-08 3:44
rrrado11-Nov-08 3:44 
AnswerRe: Exception problem Pin
David Crow11-Nov-08 4:27
David Crow11-Nov-08 4:27 
GeneralRe: Exception problem Pin
rrrado11-Nov-08 4:38
rrrado11-Nov-08 4:38 
GeneralRe: Exception problem Pin
David Crow11-Nov-08 4:55
David Crow11-Nov-08 4:55 
AnswerRe: Exception problem Pin
Rajkumar R12-Nov-08 1:08
Rajkumar R12-Nov-08 1:08 
AnswerRe: Exception problem Pin
Stephen Hewitt11-Nov-08 17:12
Stephen Hewitt11-Nov-08 17:12 
AnswerRe: Exception problem Pin
Randor 11-Nov-08 17:22
professional Randor 11-Nov-08 17:22 
QuestionHelp in CxImage.. Pin
gothic_coder11-Nov-08 3:13
gothic_coder11-Nov-08 3:13 
AnswerRe: Help in CxImage.. Pin
Hamid_RT11-Nov-08 4:20
Hamid_RT11-Nov-08 4:20 
GeneralRe: Help in CxImage.. Pin
gothic_coder11-Nov-08 4:25
gothic_coder11-Nov-08 4:25 
GeneralRe: Help in CxImage.. Pin
Mark Salsbery11-Nov-08 5:50
Mark Salsbery11-Nov-08 5:50 
GeneralRe: Help in CxImage.. Pin
gothic_coder11-Nov-08 19:24
gothic_coder11-Nov-08 19:24 
GeneralRe: Help in CxImage.. Pin
gothic_coder11-Nov-08 19:38
gothic_coder11-Nov-08 19:38 
GeneralRe: Help in CxImage.. Pin
gothic_coder11-Nov-08 21:35
gothic_coder11-Nov-08 21:35 
GeneralRe: Help in CxImage.. Pin
Mark Salsbery12-Nov-08 6:25
Mark Salsbery12-Nov-08 6:25 
GeneralRe: Help in CxImage.. Pin
CPallini11-Nov-08 21:43
mveCPallini11-Nov-08 21:43 
GeneralRe: Help in CxImage.. Pin
Hamid_RT11-Nov-08 5:54
Hamid_RT11-Nov-08 5:54 

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.