Click here to Skip to main content
15,867,308 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListCtrl Pin
Sakhalean20-May-10 3:38
Sakhalean20-May-10 3:38 
GeneralRe: CListCtrl Pin
josda100020-May-10 9:29
josda100020-May-10 9:29 
GeneralRe: CListCtrl Pin
Sakhalean21-May-10 2:41
Sakhalean21-May-10 2:41 
GeneralRe: CListCtrl Pin
josda100021-May-10 3:36
josda100021-May-10 3:36 
GeneralRe: CListCtrl Pin
josda100021-May-10 3:41
josda100021-May-10 3:41 
AnswerRe: CListCtrl Pin
David Crow20-May-10 9:54
David Crow20-May-10 9:54 
GeneralRe: CListCtrl Pin
josda100020-May-10 10:09
josda100020-May-10 10:09 
GeneralRe: CListCtrl Pin
David Crow20-May-10 10:27
David Crow20-May-10 10:27 
josda1000 wrote:
His problem was that he used index 3.


Possibly, but the bigger issue was the he was not using the return value from InsertItem(). If the list control has the either of the LVS_SORTxxx styles, then calling InsertItem(nLruIndex-1, ...) does not guarantee that the newly inserted item will be at position nLruIndex-1.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Man who follows car will be exhausted." - Confucius


GeneralRe: CListCtrl Pin
josda100020-May-10 10:37
josda100020-May-10 10:37 
QuestionLinker Error Pin
john563220-May-10 2:20
john563220-May-10 2:20 
QuestionRe: Linker Error Pin
Chris Meech20-May-10 2:43
Chris Meech20-May-10 2:43 
AnswerRe: Linker Error Pin
john563220-May-10 2:46
john563220-May-10 2:46 
GeneralRe: Linker Error Pin
Chris Meech20-May-10 2:58
Chris Meech20-May-10 2:58 
GeneralRe: Linker Error Pin
john563220-May-10 3:09
john563220-May-10 3:09 
QuestionRe: Linker Error Pin
Chris Meech20-May-10 3:12
Chris Meech20-May-10 3:12 
AnswerRe: Linker Error Pin
john563220-May-10 3:14
john563220-May-10 3:14 
AnswerRe: Linker Error Pin
Aescleal20-May-10 3:26
Aescleal20-May-10 3:26 
QuestionRe: Linker Error Pin
Chris Meech20-May-10 3:31
Chris Meech20-May-10 3:31 
AnswerRe: Linker Error Pin
Aescleal20-May-10 3:19
Aescleal20-May-10 3:19 
GeneralRe: Linker Error Pin
john563220-May-10 3:41
john563220-May-10 3:41 
QuestionNot getting Excel::_ApplicationPtr from WindowsPtr. Pin
KTTransfer20-May-10 2:08
KTTransfer20-May-10 2:08 
QuestionTough one: modify screen contents on the fly Pin
y.a.k20-May-10 0:50
y.a.k20-May-10 0:50 
AnswerRe: Tough one: modify screen contents on the fly Pin
CPallini20-May-10 1:47
mveCPallini20-May-10 1:47 
QuestionCStatic Background color Pin
Anu_Bala19-May-10 23:34
Anu_Bala19-May-10 23:34 
AnswerRe: CStatic Background color [modified] Pin
Hristo-Bojilov20-May-10 0:37
Hristo-Bojilov20-May-10 0:37 

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.