Click here to Skip to main content
13,792,811 members

C / C++ / MFC

 
GeneralRe: Retrieve HWND of a control that has focus Pin
David Crow10-Aug-18 5:58
memberDavid Crow10-Aug-18 5:58 
AnswerRe: Retrieve HWND of a control that has focus Pin
leon de boer10-Aug-18 7:57
memberleon de boer10-Aug-18 7:57 
GeneralRe: Retrieve HWND of a control that has focus Pin
_Flaviu11-Aug-18 22:08
member_Flaviu11-Aug-18 22:08 
GeneralRe: Retrieve HWND of a control that has focus Pin
Richard MacCutchan11-Aug-18 22:56
protectorRichard MacCutchan11-Aug-18 22:56 
GeneralRe: Retrieve HWND of a control that has focus Pin
_Flaviu13-Aug-18 1:09
member_Flaviu13-Aug-18 1:09 
GeneralRe: Retrieve HWND of a control that has focus Pin
Randor 13-Aug-18 2:51
professional Randor 13-Aug-18 2:51 
GeneralRe: Retrieve HWND of a control that has focus Pin
leon de boer12-Aug-18 4:47
memberleon de boer12-Aug-18 4:47 
QuestionWhat is the magic incantation to select a row in a CListCtrl in report mode ? Pin
Maximilien9-Aug-18 10:09
memberMaximilien9-Aug-18 10:09 
I've look at different (many) suggested solutions but they are always failing me in some regards.

I have a list control in report mode with the "always show selection" flag set in the resource editor.
I have a button that will set the selection on a item in the list (a row).

The code to set the selection is :
// the index is valid
m_PositionListBox.SetFocus();
m_PositionListBox.SetItemState(nItem, LVIS_SELECTED, LVIS_SELECTED);
m_PositionListBox.SetItemState(nItem, LVIS_FOCUSED, LVIS_FOCUSED);

When I do the above, I see the selection change (highlighted), but then just disappears.

Am I missing something ?
I'd rather be phishing!

GeneralRe: What is the magic incantation to select a row in a CListCtrl in report mode ? Pin
David Crow9-Aug-18 10:47
memberDavid Crow9-Aug-18 10:47 
GeneralRe: What is the magic incantation to select a row in a CListCtrl in report mode ? Pin
Maximilien9-Aug-18 13:06
memberMaximilien9-Aug-18 13:06 
GeneralRe: What is the magic incantation to select a row in a CListCtrl in report mode ? Pin
Maximilien21-Aug-18 6:11
memberMaximilien21-Aug-18 6:11 
Questionhow to use recursive descent algorithm to compute an arithmetical expression? Pin
tony_ming8-Aug-18 21:42
membertony_ming8-Aug-18 21:42 
AnswerRe: how to use recursive descent algorithm to compute an arithmetical expression? Pin
Richard MacCutchan8-Aug-18 21:50
protectorRichard MacCutchan8-Aug-18 21:50 
AnswerRe: how to use recursive descent algorithm to compute an arithmetical expression? Pin
Stefan_Lang8-Aug-18 23:07
memberStefan_Lang8-Aug-18 23:07 
QuestionRe: how to use recursive descent algorithm to compute an arithmetical expression? Pin
David Crow9-Aug-18 5:55
memberDavid Crow9-Aug-18 5:55 
AnswerRe: how to use recursive descent algorithm to compute an arithmetical expression? Pin
CPallini9-Aug-18 11:38
mvpCPallini9-Aug-18 11:38 
QuestionMovePrev() throwing 265926 error code (End Of RowsSet). Pin
Sampath5797-Aug-18 21:19
memberSampath5797-Aug-18 21:19 
AnswerRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Jochen Arndt7-Aug-18 22:52
mvpJochen Arndt7-Aug-18 22:52 
GeneralRe: MovePrev() throwing -2147217837 error code Pin
Sampath5797-Aug-18 23:23
memberSampath5797-Aug-18 23:23 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Jochen Arndt8-Aug-18 0:26
mvpJochen Arndt8-Aug-18 0:26 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Sampath5798-Aug-18 1:01
memberSampath5798-Aug-18 1:01 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Jochen Arndt8-Aug-18 1:29
mvpJochen Arndt8-Aug-18 1:29 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Sampath5798-Aug-18 4:19
memberSampath5798-Aug-18 4:19 
GeneralRe: MovePrev() throwing 265926 error code (End Of RowsSet). Pin
Jochen Arndt8-Aug-18 4:21
mvpJochen Arndt8-Aug-18 4:21 
GeneralRe: MovePrev() throwing -2147217837 error code. Pin
Sampath57912-Aug-18 2:36
memberSampath57912-Aug-18 2:36 

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.


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.181207.3 | Last Updated 6 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid