Archived

This topic is now archived and is closed to further replies.

Gilzu

anyone knows a macro/func that builds a RECT?

Recommended Posts

Gilzu    122
i''m sick and tierd of filling the RECT struct every time i have to use it. isnt there a func/macro that returns RECT? smting like returnrect(0,0,640,480) which return RECT? Gil Micro$oft beta testing: "Does the splash screen works? SHIP IT!!!"

Share this post


Link to post
Share on other sites
Beer Hunter    712
When declaring a RECT, it can be initialised:

RECT r = {0, 0, 640, 480};

Or, if you need to fill it out after declaration:

#define SetRect(r,a,b,c,d) r.left = a; r.top = b; r.right = c; r.bottom = d

Share this post


Link to post
Share on other sites