• Welcome to Valhalla Legends Archive.
 

Owner Drawed ListViews/Boxs/?

Started by UserLoser, June 13, 2003, 06:46 PM

Previous topic - Next topic

UserLoser

Ok, I've searched around pscode, google, and many other sites for information on how to do this, I have found other codes on how to do owner drawed objects, but not what I'm looking for... Here is a link to an exe that has what I want, I just can't find resources on how do to it, could anyone help?

http://darknet.darktech.org/OwnerDraw.zip

Camel

#1
http://www.mvps.org/vbvision/Sample_Projects.htm
waaaaaaay at the bottom, Virtual ListView Demo

[edit] does anybody know if it would be possible to call code directly from the game client to do this work? ::looks at skywing::
it'd be pretty cool to have a list of d2-style users in a bot without writing much code :)

Zonker

Thats my example that I wrote when adding an owner-draw listbox to my bot Vindication.  Didn't exactly intend it to be public, seeing as how I only ever sent it to one person, but oh well.  There is a great example of how to do it in the MSDN, but it appears that it isn't on the online version.  SubSpace made an example based on it, and its at http://botdev.valhallalegends.com/documents/mfcodlistbox.html .
The example they have up now isn't as good, but still works, thats at http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/listboxes/usinglistboxes.asp?frame=true#ownerdrawn_listbox
Hope that helps you

Skywing

Quote from: Camel on June 14, 2003, 01:19 AM
http://www.mvps.org/vbvision/Sample_Projects.htm
waaaaaaay at the bottom, Virtual ListView Demo

[edit] does anybody know if it would be possible to call code directly from the game client to do this work? ::looks at skywing::
it'd be pretty cool to have a list of d2-style users in a bot without writing much code :)
Yes, but what you're thinking of would suck.  It'd be way more work to do that than to just write it yourself, and the D2 UI leaks memory and takes profuse amounts of CPU time.  Not to mention that it tends to crash when there are Warcraft III users present.

Yoni


Camel

#5
Quote from: Skywing on June 15, 2003, 04:30 PM
Yes, but what you're thinking of would suck.  It'd be way more work to do that than to just write it yourself, and the D2 UI leaks memory and takes profuse amounts of CPU time.  Not to mention that it tends to crash when there are Warcraft III users present.
ah well, it'd still be pretty cool :)

[edit] is it just me or does the preview button really submit now?

Yoni

No, it doesn't. (It used to but it was fixed.)