RE: IDE version .10.1 now available
- Posted by Matthew Lewis <matthewwalkerlewis at YAHOO.COM> Mar 26, 2001
- 404 views
> -----Original Message----- > From: behaviorself at netzero.net [mailto:behaviorself at netzero.net] > (BTW, > like I said, I am having other problems with ListViews, so if > anyone can > give me a hint on how to use them, I'd really appreciate it. > I'm trying to > list items in seperate columns, with some being > left-justified, and some > being right justified.) Unfortunately, there is no way for win32lib to 'automatically' do this right now. Here's what you can do: lvcol = struct_LVCOLUMN( LVCF_FMT, -- mask: this tells win to only look at the format LVCFMT_LEFT/RIGHT/CENTER, -- the format for the column 0, "", -- width, text colnum-1 ) -- column number. This is zero-based. VOID = sendMessage( myListView, LVM_SETCOLUMN, colnum-1, lvcol ) release_mem( lvcol ) There's all sorts of neat things that can be done that aren't wrapped into win32lib. You can either visit msdn.microsoft.com, or download win32.hlp from RDS' site (about 8 megs, I think), which is a little old, but gives you a lot of great information about the win32 API that's really invaluable. Matt Lewis