I'm not sure what it's called else I would have googled it.... I want to extract structs, typedefs, classes, externs, globals, etc. the same way the class-view tree does in Visual Studio. I don't know what the act of doing such is called, other than "parsing".
To start you'll need a lexer -- takes text and determines if it's valid C++. This alone takes some doing, cause C++ isn't the most syntactically pretty language around. Don't try and do it yourself or you'll die of old age; instead, write a grammer and lean on a lexer.
Then you'll need a parser; it takes the output from a lexer and typically gives you a structure tree.
Grab the dragon book and read about compiler construction; you're building the first two or three stages of one.
I have a list control item with a given amount of columns and respective headers. I would now like to add some sorting functionality, where, upon clicking the header of the respective column, it sorts alphabetically. Are there any functions to accomplish this?
Well to first add the notification for HDN_ITEMCLICK is tough:-
why because the on notify macro is as follows
ON_NOTIFY( wNotifyCode, id, memberFxn ) and the id of the header control is zero unless explicitly set .