Don't show selected row when control looses focus |
Post Reply |
Author | |
mgampi
Senior Member Joined: 14 July 2003 Status: Offline Points: 1201 |
Post Options
Thanks(0)
Posted: 28 August 2006 at 10:07am |
Hi;
how can I setup the control to not show the selected row(s) when the control does not have the focus.
I want the same behaviour as documented by LVS_SHOWSELALWAYS flag in CListCtrl.
Thanks in advance
Martin
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi Martin,
It would be better to implement as a custom handler of GetItemMetrics event. There you can check whether a drawn row is selected, and to change its Fore and Background colors:
-- WBR, Serge |
|
drisch
Groupie Joined: 06 July 2006 Status: Offline Points: 16 |
Post Options
Thanks(0)
|
Hi Martin,
I was wondering this too. I found, somewhat by accident, that the following seems to have the desired result:
pControl->GetPaintManager()->m_clrBtnFace = GetSysColor(COLOR_WINDOW);
pControl->GetPaintManager()->m_clrBtnText = GetSysColor(COLOR_WINDOWTEXT); |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |