Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I locking file access? Pin
Anonymous16-Jul-02 1:56
Anonymous16-Jul-02 1:56 
GeneralRe: How do I locking file access? Pin
Brian Azzopardi16-Jul-02 2:12
Brian Azzopardi16-Jul-02 2:12 
GeneralRe: How do I locking file access (fopen) Pin
Anonymous16-Jul-02 2:43
Anonymous16-Jul-02 2:43 
GeneralRe: How do I locking file access (fopen) Pin
Alexandru Savescu16-Jul-02 3:51
Alexandru Savescu16-Jul-02 3:51 
GeneralRe: How do I locking file access (fopen) Pin
Anonymous16-Jul-02 3:54
Anonymous16-Jul-02 3:54 
GeneralRe: How do I locking file access (fopen) Pin
Alexandru Savescu16-Jul-02 3:59
Alexandru Savescu16-Jul-02 3:59 
GeneralRe: How do I locking file access (fopen) Pin
Anonymous16-Jul-02 4:07
Anonymous16-Jul-02 4:07 
GeneralVisual C++ Compiler bug Pin
Ruca16-Jul-02 0:30
Ruca16-Jul-02 0:30 
GeneralRe: Visual C++ Compiler bug Pin
Rage16-Jul-02 1:05
professionalRage16-Jul-02 1:05 
GeneralRe: Visual C++ Compiler bug Pin
Alexandru Savescu16-Jul-02 4:02
Alexandru Savescu16-Jul-02 4:02 
GeneralRe: Visual C++ Compiler bug Pin
Ruca16-Jul-02 5:19
Ruca16-Jul-02 5:19 
GeneralATL Enter Key in properties closes the sheet ! Pin
Braulio Dez16-Jul-02 0:22
Braulio Dez16-Jul-02 0:22 
GeneralSorting items in CListCtrl ? Sample from MSDN.. Pin
Yo Yo~~16-Jul-02 0:02
sussYo Yo~~16-Jul-02 0:02 
GeneralRe: Sorting items in CListCtrl ? Sample from MSDN.. Pin
Koep16-Jul-02 0:54
Koep16-Jul-02 0:54 
GeneralRe: Sorting items in CListCtrl ? Sample from MSDN.. Pin
Orbital^16-Jul-02 0:58
Orbital^16-Jul-02 0:58 
GeneralRe: Sorting items in CListCtrl ? Sample from MSDN.. Pin
Koep16-Jul-02 1:02
Koep16-Jul-02 1:02 
Hi again,

here a snipit from MSDN:

The comparison function has the following form:

int CALLBACK CompareFunc(LPARAM lParam1, LPARAM lParam2,
LPARAM lParamSort);

The lParam1 parameter is the 32-bit value associated with the first item being compared, and the lParam2 parameter is the value associated with the second item. These are the values that were specified in the lParam member of the items' LVITEM structure when they were inserted into the list. The lParamSort parameter is the same value passed to the LVM_SORTITEMS message.

U have to fill the params associated with the items/subitems first.
For instance, pointer to the DataClass instance. Then u can get/compare
everything from inside the class.

I had implemented today, and this is the fastest and easiest way to do
sorting in a listcontrol.

Marco
GeneralRe: Sorting items in CListCtrl ? Sample from MSDN.. Pin
Yo Yo~~17-Jul-02 0:29
sussYo Yo~~17-Jul-02 0:29 
GeneralRe: Sorting items in CListCtrl ? Sample from MSDN.. Pin
Yo Yo~~17-Jul-02 0:54
sussYo Yo~~17-Jul-02 0:54 
GeneralRe: Sorting items in CListCtrl ? Sample from MSDN.. Pin
Koep17-Jul-02 1:54
Koep17-Jul-02 1:54 
GeneralRe: Sorting items in CListCtrl ? Sample from MSDN.. Pin
Yo Yo~~18-Jul-02 0:48
sussYo Yo~~18-Jul-02 0:48 
QuestionDifference between dialog an form? Pin
Hel15-Jul-02 22:30
Hel15-Jul-02 22:30 
AnswerRe: Difference between dialog an form? Pin
Christian Graus15-Jul-02 22:36
protectorChristian Graus15-Jul-02 22:36 
GeneralRe: Difference between dialog an form? Pin
Hel15-Jul-02 22:45
Hel15-Jul-02 22:45 
GeneralRe: Difference between dialog an form? Pin
Christian Graus15-Jul-02 22:48
protectorChristian Graus15-Jul-02 22:48 
GeneralRe: Difference between dialog an form? Pin
Hel15-Jul-02 23:00
Hel15-Jul-02 23:00 

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.