Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - How could be draw an rectangle around a row?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How could be draw an rectangle around a row?

 Post Reply Post Reply
Author
Message
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Topic: How could be draw an rectangle around a row?
    Posted: 18 October 2011 at 8:49am

CXTPReportRow::Draw & FillRow <> earlier vers (2)

*******************************************

How could be draw an rectangle around a row?

By changing my code only at the following line:
    CRect rc = pRow->GetRect(); (instead rcItem)
the rectangle is draw, but not for the previewItem area.

Also, FillRow is called for every item. (please have a look to CXTPReportRow::Draw)

    rc.right -=2;
    rc.top +=1;
    rc.left +=2;
    rc.bottom -=2;

            if(...)
            {
                pDC->SelectObject(CreatePen(PS_INSIDEFRAME, 2, RGB(255,0,0)));
                pDC->Rectangle(rc);
            }
Back to Top
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2011 at 4:20am
Hi Andre,

Confused is there no solution?


Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 23 October 2011 at 11:17am
Hi,

I'll add a row border property.

Andre

Codejock support
Back to Top
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Posted: 19 March 2012 at 4:56pm
Hi Andre,

did you add the border property? Could you provide me this update?
Or what is the best way to draw a rectangle with my version around a row? 
Back to Top
FSauer View Drop Down
Groupie
Groupie
Avatar

Joined: 10 May 2006
Location: Germany
Status: Offline
Points: 96
Post Options Post Options   Thanks (0) Thanks(0)   Quote FSauer Quote  Post ReplyReply Direct Link To This Post Posted: 22 March 2012 at 11:28am
Hi Andre,  did you add the border property? 

Wacko
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.