Well, I think I'm at the point now where I just need to load the list view. And Trying to see which api would be the best way a load a LVS_LIST style window.
Posted on 2003-08-23 22:44:11 by Tweak
since buttons edit text and everything else is a window.. you use CreateWindow or CreatWindowEx... now what tells what the window is going to look like is the proc that tell createwindow what the window will look like


example

you call a proc like this
invoke ListBox,20,40,200,566,hWin,501
mov hList2, eax

the mov stores the handle

bellow is the proc to make a list box with scroll bars and to sort alpha order and single select
above we call on this to make the list box

ListBox proc a:DWORD,b:DWORD,wd:DWORD,ht:DWORD,hParent:DWORD,ID:DWORD

szText lstBox,"LISTBOX"

invoke CreateWindowEx,WS_EX_CLIENTEDGE,ADDR lstBox,0,
WS_VSCROLL or WS_VISIBLE or WS_TABSTOP or \
WS_BORDER or WS_CHILD or \
LBS_HASSTRINGS or LBS_NOINTEGRALHEIGHT or \
LBS_SORT or LBS_DISABLENOSCROLL,
a,b,wd,ht,hParent,ID,hInstance,NULL

ret

ListBox endp


sorry edit.... yeah i decided to look up exactly what you asked and i just shoot off info that i dont think will help you sorry..
Posted on 2003-08-24 00:32:56 by devilsclaw
Thanks devilsclaw ! I think I figure it out. but one problem thou. If anyone can tell me this.

 

invoke CreateWindowEx, WS_EX_TRANSPARENT, \
ADDR ListClass, NULL, WS_CHILD or \
LVS_REPORT, 0, 0, 0, 0, hwnd, NULL, \
hInst, NULL
[\code]

the assembler keeps complaining about about the hInst and hwnd being undefined symbols and I use them before . And that arguments 11 and 9 mismatch.

Someone please explain this to me. Really in need of great understanding.
Posted on 2003-08-24 01:03:48 by Tweak
Hi Tweak,

The example I posted for you yesterday demonstrates how to put things in your listview.

Try this for your problem:

invoke CreateWindowEx, WS_EX_TRANSPARENT, \
ADDR ListClass, NULL, WS_CHILD or \
LVS_REPORT, 0, 0, 0, 0, hWin, NULL, \
hInstance, NULL
Posted on 2003-08-24 01:33:19 by donkey
My mistake Donkey.

I just realize that I had put a totally different constants in there and thanks
for the example man :alright:
Posted on 2003-08-24 01:47:28 by Tweak