Click here to Skip to main content
15,886,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Counting number of files Pin
Dennis Gourjii26-Feb-06 23:55
Dennis Gourjii26-Feb-06 23:55 
AnswerRe: Counting number of files Pin
ThatsAlok26-Feb-06 23:56
ThatsAlok26-Feb-06 23:56 
AnswerRe: Counting number of files Pin
David Crow27-Feb-06 2:49
David Crow27-Feb-06 2:49 
QuestionDetecting change printer change settings Pin
loneadam200026-Feb-06 21:44
loneadam200026-Feb-06 21:44 
QuestionWhy gethostbyname(hostname) returns NULL ? Pin
fearless stallion26-Feb-06 20:59
fearless stallion26-Feb-06 20:59 
AnswerRe: Why gethostbyname(hostname) returns NULL ? Pin
Nibu babu thomas26-Feb-06 21:03
Nibu babu thomas26-Feb-06 21:03 
GeneralRe: Why gethostbyname(hostname) returns NULL ? Pin
fearless stallion26-Feb-06 21:22
fearless stallion26-Feb-06 21:22 
Questionsetting focus in list-view controls Pin
Waldermort26-Feb-06 20:34
Waldermort26-Feb-06 20:34 
Imediatly after filling a listview with all my data I wish to set the first item as selected.

I use the folowwing:
ListView_SetItemState(GetDlgItem(hwnd,ID_DATA_LIST),0,LVIS_SELECTED,LVIS_SELECTED);
ListView_SetItemState(GetDlgItem(hwnd,ID_DATA_LIST),0,LVIS_FOCUSED ,LVIS_FOCUSED);
This is setting the list item as selected, but it does not give it the focus. i.e. Selected items usualy are highlighted in blue, but mine are simply highlighted in grey until the item is clicked.

Is there something I am missing?
AnswerRe: setting focus in list-view controls Pin
Naveen26-Feb-06 20:54
Naveen26-Feb-06 20:54 
GeneralRe: setting focus in list-view controls Pin
Waldermort26-Feb-06 23:48
Waldermort26-Feb-06 23:48 
AnswerRe: setting focus in list-view controls Pin
Naveen27-Feb-06 0:00
Naveen27-Feb-06 0:00 
GeneralRe: setting focus in list-view controls Pin
Dennis Gourjii27-Feb-06 0:01
Dennis Gourjii27-Feb-06 0:01 
GeneralRe: setting focus in list-view controls Pin
Nibu babu thomas27-Feb-06 0:11
Nibu babu thomas27-Feb-06 0:11 
GeneralRe: setting focus in list-view controls Pin
Waldermort27-Feb-06 0:58
Waldermort27-Feb-06 0:58 
GeneralRe: setting focus in list-view controls Pin
Nibu babu thomas27-Feb-06 1:36
Nibu babu thomas27-Feb-06 1:36 
GeneralRe: setting focus in list-view controls Pin
Waldermort27-Feb-06 1:56
Waldermort27-Feb-06 1:56 
AnswerRe: setting focus in list-view controls Pin
David Crow27-Feb-06 2:52
David Crow27-Feb-06 2:52 
GeneralRe: setting focus in list-view controls Pin
Waldermort27-Feb-06 3:16
Waldermort27-Feb-06 3:16 
QuestionAbout the system menuitem "Eject"?(Shell Programming) Pin
Syouki_kou26-Feb-06 19:32
Syouki_kou26-Feb-06 19:32 
QuestionThird Party Controls Pin
swaapu26-Feb-06 18:58
swaapu26-Feb-06 18:58 
AnswerRe: Third Party Controls Pin
Nibu babu thomas26-Feb-06 19:14
Nibu babu thomas26-Feb-06 19:14 
GeneralRe: Third Party Controls Pin
swaapu26-Feb-06 19:29
swaapu26-Feb-06 19:29 
GeneralRe: Third Party Controls Pin
Nibu babu thomas26-Feb-06 19:33
Nibu babu thomas26-Feb-06 19:33 
Questionhow to notify COM class in another class Pin
brygid26-Feb-06 18:55
brygid26-Feb-06 18:55 
Questionstring concatenation Pin
Kranti125198426-Feb-06 18:47
Kranti125198426-Feb-06 18:47 

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.