Hi!
I need to create 2 columns listbox with editing and combobox-selecting knows from i.e. Visual Studio or RadASM properties window. I don't know how to do this :(, so I'd be grateful 4 any help.
Posted on 2004-03-28 13:00:21 by Deli
you need ListView
Posted on 2004-03-28 14:06:04 by comrade
This is my testbed for listviews. It demonstrates alot of things including the combo box thing. It also has the procs necessary to set up a sub item edit but I don't think it'simplemented right now. The code is long and obfustcated as I use it to try out ideas and there may be a few bugz but if you're brave you can dig through it and see how the stuff is done. GoAsm syntax, RadASM project format.
Posted on 2004-03-28 14:29:25 by donkey

you need ListView


But Spy++ shows that Properties window in Rad ASM is "ListBox" class... :/
Posted on 2004-03-28 16:06:54 by Deli
Yes, but you asked for multiple columns, the properties box is a single column with TABS. It is simply an owner drawn listbox and the same method is used to draw the combo over it. You measure the rectangle of the item and create a combobox of that size in that position.
Posted on 2004-03-28 16:18:45 by donkey
Could you paste me some source, please?
Thanks for help!
Posted on 2004-03-28 16:49:51 by Deli

Could you paste me some source, please?
Thanks for help!


I don't have any and not having any use for it I don't plan on writing any, but it should be simple enough to do. You have only to make the listbox an owner drawn and process the WM_MEASUREITEM and WM_DRAWITEM messsages, try to write it yourself and if you have any problems post them here.
Posted on 2004-03-28 19:17:24 by donkey