Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCopy data to clipboard Pin
23-May-01 7:21
suss23-May-01 7:21 
GeneralRe: Copy data to clipboard Pin
Tomasz Sowinski23-May-01 9:45
Tomasz Sowinski23-May-01 9:45 
GeneralRe: Copy data to clipboard Pin
Tim Deveaux23-May-01 10:36
Tim Deveaux23-May-01 10:36 
GeneralList Control Pin
Maju23-May-01 1:31
Maju23-May-01 1:31 
GeneralRe: List Control Pin
Michael Dunn23-May-01 15:23
sitebuilderMichael Dunn23-May-01 15:23 
GeneralSingleton Activex Control Pin
uday22-May-01 22:33
uday22-May-01 22:33 
GeneralDatabase programming by DAO ... Pin
Hadi Rezaee22-May-01 22:21
Hadi Rezaee22-May-01 22:21 
QuestionCListCtrl lines? Pin
Keijo Paananen22-May-01 20:45
Keijo Paananen22-May-01 20:45 
Hello.

How can I sort List Control lines to reverse order? My program reads these lines from a textfile, and they appear in the list control in wrong order. The first line in the textfile becomes now the last line in the list control. It should be just opposite. These lines contain such information that it's important that they are in the same order as in the textfile.

I've used InsertItem() and SetItemText() -methods to add these lines to the list control.

Here is the code that adds a line.

nItem = m_List.InsertItem(0, text1);
m_List.SetItemText(nItem, 1, text2);
m_List.SetItemText(nItem, 2, text3);

It's in a while-loop, in order to add all necessary lines to the control.


So if anyone can help me, please do so. Wink | ;)

Thanx,
paanane
AnswerRe: CListCtrl lines? Pin
Tomasz Sowinski22-May-01 23:07
Tomasz Sowinski22-May-01 23:07 
GeneralRe: CListCtrl lines? Pin
Keijo Paananen23-May-01 0:23
Keijo Paananen23-May-01 0:23 
AnswerRe: CListCtrl lines? Pin
Tomasz Sowinski23-May-01 1:38
Tomasz Sowinski23-May-01 1:38 
GeneralDirectshow (DES) Pin
22-May-01 20:02
suss22-May-01 20:02 
GeneralCcombo box multiple colors Pin
22-May-01 18:05
suss22-May-01 18:05 
GeneralRe: Ccombo box multiple colors Pin
l a u r e n22-May-01 22:25
l a u r e n22-May-01 22:25 
GeneralRe: Ccombo box multiple colors Pin
23-May-01 3:28
suss23-May-01 3:28 
GeneralRe: Ccombo box multiple colors Pin
l a u r e n23-May-01 5:10
l a u r e n23-May-01 5:10 
Generalhelp. i don't know why my mouse cursor flickers. Pin
22-May-01 16:02
suss22-May-01 16:02 
GeneralRe: help. i don't know why my mouse cursor flickers. Pin
Ben Burnett22-May-01 20:14
Ben Burnett22-May-01 20:14 
GeneralRe: help. i don't know why my mouse cursor flickers. Pin
22-May-01 22:04
suss22-May-01 22:04 
GeneralRe: help. i don't know why my mouse cursor flickers. Pin
Ben Burnett23-May-01 9:06
Ben Burnett23-May-01 9:06 
GeneralRe: help. i don't know why my mouse cursor flickers. Pin
23-May-01 9:35
suss23-May-01 9:35 
Questionhow to make select fast use ODBC! Pin
bighare22-May-01 14:51
bighare22-May-01 14:51 
GeneralTime Display Help! Pin
22-May-01 14:15
suss22-May-01 14:15 
GeneralRe: Time Display Help! Pin
Anders Molin22-May-01 21:31
professionalAnders Molin22-May-01 21:31 
GeneralRe: Time Display Help! Pin
Tomasz Sowinski22-May-01 23:14
Tomasz Sowinski22-May-01 23:14 

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.