flat assembler
Message board for the users of flat assembler.

Index > Windows > List View Control

Author
Thread Post new topic Reply to topic
Torrey



Joined: 12 Oct 2003
Posts: 78
Torrey 24 May 2005, 09:53
I recently started working on PE compression/encryption program (although a different version for creating a packed archive may happen first for testing). On the dialog window I have a List View control, what I'd like to know is if anyone has worked with these and already has an include file, or related procs or macros?

Working with the control has been rather easy, but the use of macros and procs would help keep the source code clean. Thanks in advance for any replies!
Post 24 May 2005, 09:53
View user's profile Send private message Visit poster's website Reply with quote
Nikolay Petrov



Joined: 22 Apr 2004
Posts: 101
Location: Bulgaria
Nikolay Petrov 26 May 2005, 21:38
Torrey I don't understand what you want. If you want to find a procs or macros to assemble list view control - it' s will be easy - has to many information from the net, but if you want someone create this for your program is need more info...
Post 26 May 2005, 21:38
View user's profile Send private message Reply with quote
Torrey



Joined: 12 Oct 2003
Posts: 78
Torrey 27 May 2005, 04:56
Nickolay wrote:
Torrey I don't understand what you want. If you want to find a procs or macros to assemble list view control - it' s will be easy - has to many information from the net, but if you want someone create this for your program is need more info...


With coding for the List View control is a lot of repetitve coding, so if anyone had already coded a few procs to handle calls for the list view it would have helped out a little bit. Although I think very few coders around here have used this with asm. More then likely I'll be writing my own procs. Possibly to share when finished too.

[edit]

MSVC++ comes with macros for use with this control. So what I started to do is create a DLL with MSVC++ and just importing the functions I need to. Once I complete the project I will post the List View DLL for you all.
Post 27 May 2005, 04:56
View user's profile Send private message Visit poster's website Reply with quote
Torrey



Joined: 12 Oct 2003
Posts: 78
Torrey 28 May 2005, 01:37
Contained in the zip below is the List View control DLL, and I created a help file to go along with it.

A quick note about the control, remember that after you create your window or dialog, to issue a call to the _List_Create@20 so that the List View will be created. The help file will tell you which arguments each function takes.


Description: Updated List View to have non-decorated api names, and updated the help file.
Download
Filename: listview.zip
Filesize: 19.55 KB
Downloaded: 429 Time(s)

Post 28 May 2005, 01:37
View user's profile Send private message Visit poster's website Reply with quote
Torrey



Joined: 12 Oct 2003
Posts: 78
Torrey 31 May 2005, 09:47
Above you'll find I replaced the old zip with a new one. The new one has an updated help file, and the api's have been fixed so they aren't decorated.
Post 31 May 2005, 09:47
View user's profile Send private message Visit poster's website Reply with quote
coconut



Joined: 02 Apr 2004
Posts: 326
Location: US
coconut 31 May 2005, 15:32
nice work torrey, thanks for sharing
Post 31 May 2005, 15:32
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 31 May 2005, 19:18
Ok, I tryed it and the calls to the DLL worked, but I can't seem to get the hang of it what does it want from me.

Should I create a dialog box to paint it on or should it make its own window (the help says something about x,y,width,height)?
Maybe its drawn on some bitmap or does it require a clean modal window and a handle to the listview Neutral or the other way round.

I'm so confused right now! Time to sleep...
Post 31 May 2005, 19:18
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Torrey



Joined: 12 Oct 2003
Posts: 78
Torrey 31 May 2005, 19:31
This control needs you to have a window or dialog created first. Afterwards you would issue a function call similar to the one below.

Code:
invoke List_Create,[hwnd],[x],[y],[nWidth],[nHeight]
mov [LVhWnd],eax    


X & Y are the coordinates on the window you created that you would like the top left corner of the list view control to be.

nWidth & nHeight are the size of the list view.

After you create the list view on the window and need to make further calls to the list view control remember to use the handle that List_Create returned back to you.
Post 31 May 2005, 19:31
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.