Click here to Skip to main content
15,898,373 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Arrays n'stuff Pin
John Uhlenbrock29-Jun-01 10:32
John Uhlenbrock29-Jun-01 10:32 
GeneralRe: Arrays n'stuff Pin
Ben Burnett29-Jun-01 11:34
Ben Burnett29-Jun-01 11:34 
QuestionHow do I get LOGFONT from an IFont without using CFont? Pin
Bart-Man29-Jun-01 6:18
Bart-Man29-Jun-01 6:18 
AnswerRe: How do I get LOGFONT from an IFont without using CFont? Pin
PJ Arends29-Jun-01 17:00
professionalPJ Arends29-Jun-01 17:00 
AnswerRe: How do I get LOGFONT from an IFont without using CFont? Pin
Ben Burnett29-Jun-01 17:01
Ben Burnett29-Jun-01 17:01 
GeneralGetPrivateProfileString() keeps failing Pin
David Osborn29-Jun-01 5:49
David Osborn29-Jun-01 5:49 
GeneralRe: GetPrivateProfileString() keeps failing Pin
#realJSOP1-Jul-01 3:17
professional#realJSOP1-Jul-01 3:17 
QuestionWhat control should I use??? Pin
Michael Martin29-Jun-01 5:39
professionalMichael Martin29-Jun-01 5:39 
For those who came in late ...

The 1st Phantom swore an aoth on the skull of his father who had been killed by Pirates to fight evil. Ghost Who Walks .....

Whoops sorry wrong story. Anyway my All American Dream Database program continues. Previous help I received here recommended I set the width of the first column of my ListCtrl to zero to hide the Primary Key from the user. This worked a treat, I required the key to be in the row to make it easy for myself to update the selected database record when required.

Now I wish to allow my user on another screen to reorder the records independant of the key. By this I mean I have an Order column for use in reports that the user can reset the order.

I envisaged using the ListCtrl that has become my friend in this project. I would display the Customer (with hidden Primary Key), allow them to re-order the list and then I would cycle through the records updating them sequentially with the new order.

Problem is the SetItemPosition() function only works when in Icon or Small Icon mode and SetExtendedStyles only has drag and drop ability on rows not columns. Of course I am using Report mode and need to re-order the rows not columns. This stops me from using drag and drop or Up/Down command buttons to enable the re-ordering.

What have I missed? I'm sure it is obvious but not to me. How should I be doing this, preferably I would like to be able drag the row into it's new position.

Thanks in advance for the help.


Michael Martin
Pegasystems Pty Ltd
Australia
martm@pegasystems.com
+61 413-004-018
GeneralGetting keyboard calls from external application windows Pin
David Higgins29-Jun-01 4:25
David Higgins29-Jun-01 4:25 
GeneralRe: Getting keyboard calls from external application windows Pin
29-Jun-01 4:46
suss29-Jun-01 4:46 
GeneralSplitter Windows Pin
Drake Elsari29-Jun-01 4:08
Drake Elsari29-Jun-01 4:08 
GeneralRe: Splitter Windows Pin
Drake Elsari29-Jun-01 15:53
Drake Elsari29-Jun-01 15:53 
GeneralRe: Splitter Windows Pin
Ben Burnett29-Jun-01 16:55
Ben Burnett29-Jun-01 16:55 
GeneralRe: Splitter Windows Pin
Drake Elsari30-Jun-01 4:30
Drake Elsari30-Jun-01 4:30 
GeneralRe: Splitter Windows Pin
Drake Elsari30-Jun-01 8:08
Drake Elsari30-Jun-01 8:08 
GeneralRe: Splitter Windows Pin
Ben Burnett30-Jun-01 8:29
Ben Burnett30-Jun-01 8:29 
GeneralRe: Splitter Windows Pin
Drake Elsari30-Jun-01 14:48
Drake Elsari30-Jun-01 14:48 
GeneralInternational topix Pin
29-Jun-01 4:00
suss29-Jun-01 4:00 
GeneralCOleDateTime Pin
Gérald Mercet29-Jun-01 3:57
Gérald Mercet29-Jun-01 3:57 
GeneralRe: COleDateTime Pin
Bret Faller29-Jun-01 6:39
Bret Faller29-Jun-01 6:39 
GeneralRe: COleDateTime Pin
1-Jul-01 21:35
suss1-Jul-01 21:35 
GeneralRe: COleDateTime Pin
Gérald Mercet1-Jul-01 21:38
Gérald Mercet1-Jul-01 21:38 
GeneralRe: COleDateTime Pin
Bret Faller2-Jul-01 6:43
Bret Faller2-Jul-01 6:43 
GeneralCOleDateTime Pin
Gérald Mercet29-Jun-01 3:57
Gérald Mercet29-Jun-01 3:57 
Generalcreating controls on the desktop?!! Pin
28-Jun-01 20:03
suss28-Jun-01 20:03 

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.