Sign in to follow this  

Need win32 api list-view contoller help =)

This topic is 4592 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Yo! ;) To keep it short: Background: Im writing a book registration program for the moment, gui style ofcource, and im using a list-view controller to display all the books, The problem: My api files are kind of old, and i searched msdn.com for newer version for vc++ 6.0 but i cant find any =/ And i have to be able to sort any of 6 items/sub-items when ur clicking the column tops :P, "well thats easy, i done that before..".. erh. no, i have to be able to alphabeticly sort any of the items, without the LVM_SORTITEMSEX message =/ My current idea of solution: Since i can still use the old sort function, i could set up all the lParams to match the right order of the field im intrested in... or can i? All if any help appriciated cheers! ;)

Share this post


Link to post
Share on other sites
ah, nvm i think i figured it out... i set lparam as an item index, then i just use the item index together with the book data, and the lparamSort in the callback to decide what field to sort after, then just comprare them alphabeticly... wouldnt that work just fine?

Now the question... how do i refine what the user wanna sort it by?, eg. what header the user pushed? =)

cheers!

Share this post


Link to post
Share on other sites

This topic is 4592 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this