hi guy... try this...

//Top Line
rect.x = left;
rect.y = top;
rect.w = width;
rect.h = 1;

//Left line
rect.x = left;
rect.y = top;
rect.w = 1;
rect.h = height;

//Bottom line
rect.x = left;
rect.y = height;
rect.w = width;
rect.h = 1;

//Right line
rect.x = width;
rect.y = top;
rect.w = 1;
rect.h = height;