![]() |
CXTListCtrl |
Post Reply ![]() |
Author | |
floydzhang ![]() Groupie ![]() Joined: 08 March 2008 Status: Offline Points: 50 |
![]() ![]() ![]() ![]() ![]() Posted: 23 June 2008 at 3:33am |
Hi, friends I meet a problem. When the listctrl loses focus, fox example, I click the buttons, click other panes, how the selection in listctrl can keep sitll hlighted?
I set the style of listctrl with LVS_SHOWSELALWAYS, but it didn't work. Regards
Floyd
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
LVS_SHOWSELALWAYS have to work. How do you set it ?
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
floydzhang ![]() Groupie ![]() Joined: 08 March 2008 Status: Offline Points: 50 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I put the code like this in the OnInitialUpdate().
CFormView::OnInitialUpdate();
SetScaleToFitSize(CSize(0)); m_btnNGTypeExpand.SetBrowseStyle(BES_XT_POPUPMENU); //m_arrButton[0].SetShade(CShadeButtonST::SHS_HARDBUMP); m_listCtrl.DeleteAllItems(); // Insert the columns. ListView_SetExtendedListViewStyle(m_listCtrl.m_hWnd, |
|
![]() |
|
mgampi ![]() Senior Member ![]() ![]() Joined: 14 July 2003 Status: Offline Points: 1201 |
![]() ![]() ![]() ![]() ![]() |
Hi;
LVS_SHOWSELALWAYS is not an extended listview style. Try to set the style in your dialog ressource. |
|
Martin Product: Xtreme Toolkit v 22.1.0, new Projects v 24.0.0 Platform: Windows 10 v 22H2 (64bit) Language: VC++ 2022 |
|
![]() |
|
floydzhang ![]() Groupie ![]() Joined: 08 March 2008 Status: Offline Points: 50 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Thank you. It works but it still doesn't meet my requirement. When the listctrl lost focus, the highlight became light gray, but I want the highlight color keeps the same, blue. Meanwhile, the listctrl will lose hightlight when I click blank part of the listctrl, this is what I don't want as well. Any idea? I have to derive a class from listctrl?
Regards
Boyang
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
No style for that. :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
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 |