flat assembler
Message board for the users of flat assembler.

Index > Windows > Array creation

Author
Thread Post new topic Reply to topic
Carlito



Joined: 08 Apr 2004
Posts: 11
Location: Paris
Carlito
Hi everybody, i'm trying to set a fancy shape for a win32 window using the

HRGN CreatePolygonRgn(
CONST POINT *lppt, // array of points
int cPoints, // number of points in array
int fnPolyFillMode // polygon-filling mode
);

is fasm.
In order to make something like http://www.vbaccelerator.com/codelib/winstyle/bmpwinsh.htm

But as mentionned above, it needs an array of POINT.
I wrote
Code:
Polygon: 
rept 100 
{ 
local pt
pt POINTS 
} 
    

but can't figure out on how to initialize the values of my points and even though how to put them in an array.

Can someone figure it out?
Thanks in advance.
Post 26 Nov 2005, 08:55
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
I posted it in anotrher thread, but there it will be more suitable:
Code:
struc POLY [value] {
 common
  ..poly_flag equ false
 forward
  if ..poly_flag eq false
   . POINT value
   ..poly_flag equ true
  else
   local ..label
   ..label POINT value
  end if
}    
Post 26 Nov 2005, 23:49
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.