Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Focus on a single cell
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Focus on a single cell

 Post Reply Post Reply
Author
Message
Therese View Drop Down
Newbie
Newbie


Joined: 03 April 2006
Location: Sweden
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote Therese Quote  Post ReplyReply Direct Link To This Post Topic: Focus on a single cell
    Posted: 03 April 2006 at 10:05am

How do I draw the focus rectangle for a single cell in a Report Control instead of a whole row?

I have created my own PaintManager and changed the highlighted colors so my control always has white background and black text. This works fine, but when I tab between the cells I can't see which cell has focus. I would like draw the focus rectangle so it matches the focused cell.


Thanks in advance,
Therese
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2006 at 1:22pm
Hi Therese,

You'll have to implement your own CXTPCalendarPaintManager::CDayViewCellPart::OnDraw method.
By default it fills the highlighted cell with solid Highlight color. You can change it there to highlight only the border of the cell.

--
WBR,
Serge
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.125 seconds.