Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: showing a button with a bitmap Pin
Iain Clarke, Warrior Programmer27-Jun-08 3:01
Iain Clarke, Warrior Programmer27-Jun-08 3:01 
AnswerRe: showing a button with a bitmap Pin
David Crow27-Jun-08 4:43
David Crow27-Jun-08 4:43 
AnswerRe: showing a button with a bitmap Pin
Hamid_RT30-Jun-08 18:30
Hamid_RT30-Jun-08 18:30 
QuestionHow can set Focus on ListCtrl? Pin
Le@rner26-Jun-08 23:10
Le@rner26-Jun-08 23:10 
AnswerRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian26-Jun-08 23:14
professionalRajesh R Subramanian26-Jun-08 23:14 
GeneralRe: How can set Focus on ListCtrl? Pin
Le@rner26-Jun-08 23:23
Le@rner26-Jun-08 23:23 
GeneralRe: How can set Focus on ListCtrl? Pin
Naveen26-Jun-08 23:35
Naveen26-Jun-08 23:35 
GeneralRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian26-Jun-08 23:39
professionalRajesh R Subramanian26-Jun-08 23:39 
"_$h@nky_" wrote:
No sir its not working, I m also use SetFocus() but it is also not working.


Actually, it does work. But it ain't visible. Try the following code and press up or down key. You'll realize that the focus is on the control.
m_listctrl.SetSelectionMark(0);
m_listctrl.SetFocus();

But, this just works perfect (the selection is visible too):
m_listctrl.SetItemState(0, LVIS_SELECTED, LVIS_SELECTED);
m_listctrl.SetFocus();



Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP

GeneralRe: How can set Focus on ListCtrl? Pin
Le@rner26-Jun-08 23:47
Le@rner26-Jun-08 23:47 
QuestionRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian26-Jun-08 23:50
professionalRajesh R Subramanian26-Jun-08 23:50 
AnswerRe: How can set Focus on ListCtrl? Pin
Le@rner27-Jun-08 0:49
Le@rner27-Jun-08 0:49 
GeneralRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian27-Jun-08 0:55
professionalRajesh R Subramanian27-Jun-08 0:55 
GeneralRe: How can set Focus on ListCtrl? Pin
Le@rner27-Jun-08 1:23
Le@rner27-Jun-08 1:23 
QuestionRe: How can set Focus on ListCtrl? Pin
Rajesh R Subramanian27-Jun-08 1:42
professionalRajesh R Subramanian27-Jun-08 1:42 
AnswerRe: How can set Focus on ListCtrl? Pin
sudhir_Kumar26-Jun-08 23:29
sudhir_Kumar26-Jun-08 23:29 
QuestionRe: How can set Focus on ListCtrl? Pin
David Crow27-Jun-08 4:48
David Crow27-Jun-08 4:48 
Questionacsii to decimal or hexadecimal Pin
Deepu Antony26-Jun-08 22:50
Deepu Antony26-Jun-08 22:50 
AnswerRe: acsii to decimal or hexadecimal Pin
SandipG 26-Jun-08 22:56
SandipG 26-Jun-08 22:56 
GeneralRe: acsii to decimal or hexadecimal Pin
Deepu Antony26-Jun-08 23:17
Deepu Antony26-Jun-08 23:17 
GeneralRe: acsii to decimal or hexadecimal Pin
SandipG 26-Jun-08 23:20
SandipG 26-Jun-08 23:20 
GeneralRe: acsii to decimal or hexadecimal Pin
Deepu Antony26-Jun-08 23:29
Deepu Antony26-Jun-08 23:29 
AnswerRe: acsii to decimal or hexadecimal Pin
David Crow27-Jun-08 4:49
David Crow27-Jun-08 4:49 
Questionhow to calculate this amount? Pin
gentleguy26-Jun-08 21:52
gentleguy26-Jun-08 21:52 
AnswerRe: how to calculate this amount? Pin
Iain Clarke, Warrior Programmer26-Jun-08 22:07
Iain Clarke, Warrior Programmer26-Jun-08 22:07 
GeneralRe: how to calculate this amount? Pin
gentleguy26-Jun-08 22:18
gentleguy26-Jun-08 22:18 

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.