flat assembler
Message board for the users of flat assembler.

Index > Windows > Sample of drawing in Listview with NM_CUSTOMDRAW

Author
Thread Post new topic Reply to topic
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode 06 Jun 2009, 23:21
Hallo All,
Working on Biberkopf, i would share a basic example of drawing in a Listview
using NM_CUSTOMDRAW notification message. CDDS_REPAINT, ITEM_REPAINT..ULTRA_PAINT/PREPAINT/PICPAINT, and so on.

Ok. Here the code
Updated [Sonntag] - 07.Juni.2009

Enjoy
hopcode Very Happy

Code:
format PE GUI 4.0
entry start
      ;--------------------------------------
     ;
   ; ---- hopcode[mrk]
 ; -----  Updated [Sonntag] - 07.Juni.2009
   ; -----  little improvements ------------------------
       ; ------ [Samstag] - 06.Juni.2009
   ; ------ sample of NM_CUSTOMDRAW 
   ; -------NOTE: require mrk_macro's to be compiled
      ; ---- http://msdn.microsoft.com/en-us/library/bb774865(VS.85).aspx
     ;
   ;--------------------------------------

 ret 8
    

_________________
⠓⠕⠏⠉⠕⠙⠑


Last edited by hopcode on 06 Apr 2011, 15:45; edited 3 times in total
Post 06 Jun 2009, 23:21
View user's profile Send private message Visit poster's website Reply with quote
windwakr



Joined: 30 Jun 2004
Posts: 827
windwakr 07 Jun 2009, 02:52
Looks cool, but I get this when I exit.

Btw, I have error reporting turned off, thats why the error message looks different....Frozen programs turn off instantly when you 'end task' them, no shitty dumprep has to run and freeze the computer for a minute creating a stupid error log that noone evers sends...


Description:
Filesize: 7.02 KB
Viewed: 3864 Time(s)

Error.gif



_________________
----> * <---- My star, won HERE
Post 07 Jun 2009, 02:52
View user's profile Send private message Reply with quote
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode 07 Jun 2009, 09:59
windwakr wrote:
...a stupid error log that noone evers sends..
Laughing
Yes, Maybe the
Code:
 - >ExitProcess,eax
 - >ret
to be corrected in
 -> invoke ExitProcess,0
    

This is a One More '*' star for you. You Won !!!!
Post 07 Jun 2009, 09:59
View user's profile Send private message Visit poster's website Reply with quote
farrier



Joined: 26 Aug 2004
Posts: 274
Location: North Central Mississippi
farrier 07 Jun 2009, 21:22
hopcode,

Your personal macro files would help to understand and assemble the files. Can you share them here?

farrier

_________________
Some Assembly Required
It's a good day to code!
U.S.Constitution; Bill of Rights; Amendment 1:
... the right of the people peaceably to assemble, ...
The code is dark, and full of errors!
Post 07 Jun 2009, 21:22
View user's profile Send private message Reply with quote
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode 08 Jun 2009, 11:09
farrier wrote:
...Can you share them here?

Hallo farrier,
Naturally Yes, but i need some time (say a week) to recollect and
reformat them. It was long time that i planned to do so: all my macroes in a thread,
short description and usage. At the moment, they are all available
on board but sparses on different places.
I will not bore giving you (several) links to click.

Regards,
hopcode
Post 08 Jun 2009, 11:09
View user's profile Send private message Visit poster's website Reply with quote
farrier



Joined: 26 Aug 2004
Posts: 274
Location: North Central Mississippi
farrier 09 Jun 2009, 00:56
hopcode,

Thanks!

I'll peek around and see what I can find on the board while you consolidate your macros. I like what you have done.

farrier

_________________
Some Assembly Required
It's a good day to code!
U.S.Constitution; Bill of Rights; Amendment 1:
... the right of the people peaceably to assemble, ...
The code is dark, and full of errors!
Post 09 Jun 2009, 00:56
View user's profile Send private message Reply with quote
hopcode



Joined: 04 Mar 2008
Posts: 563
Location: Germany
hopcode 15 Jun 2009, 19:16
Hallo farrier,
i have reused my old Winmacro thread.
hear, the link with all files and samples
http://board.flatassembler.net/topic.php?t=8941

I hope it will be useful!
Rgards,
hopcode
Post 15 Jun 2009, 19:16
View user's profile Send private message Visit poster's website Reply with quote
farrier



Joined: 26 Aug 2004
Posts: 274
Location: North Central Mississippi
farrier 16 Jun 2009, 02:56
Thanks hopcode,

I'm looking at them now.

farrier

_________________
Some Assembly Required
It's a good day to code!
U.S.Constitution; Bill of Rights; Amendment 1:
... the right of the people peaceably to assemble, ...
The code is dark, and full of errors!
Post 16 Jun 2009, 02:56
View user's profile Send private message 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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.