PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

/samples/simple

Hello 2you!

I cant understand how SetRect(...); works
(Create the taskbar buttons, 86,87,88,140 line)
And i can't find it in SDK

Help me, pls



Thanks, GRoZ
SetRect is a macro that initializes a RECT structure:

SetRect(RECT* pRect, LONG x1, LONG y1, LONG x2, LONG y2)

.. so you won't have to type:

RECT myrect;
myrect.left = x1;
myrect.top = y1;
myrect.right = x2;
myrect.bottom = y2;
I have forgotten to update topic, I've understood this moment.

tnx