Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - GetSelectedItems returns 1 in XTP_PGN_SELECTION_CH
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

GetSelectedItems returns 1 in XTP_PGN_SELECTION_CH

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

Joined: 16 April 2009
Location: France
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote apautrot Quote  Post ReplyReply Direct Link To This Post Topic: GetSelectedItems returns 1 in XTP_PGN_SELECTION_CH
    Posted: 12 March 2010 at 3:44am
Hi,

Using v 13.1.0

With EnableMultiLine ( TRUE ), when notified of XTP_PGN_SELECTION_CHANGED, GetSelectedItems always returns 1 when multiple items are selected.

Can you suggest a workaround, this issue is blocking us.

Can be easily reproduced in sample :

Add m_wndPropertyGrid.EnableMultiSelect ( TRUE ); just after creation of property grid.
Then, in code that handle notification of XTP_PGN_SELECTION_CHANGED, add the following :
CArray<int,int> oSelection;
m_wndPropertyGrid.GetSelectedItems ( &oSelection );
int i = oSelection.GetCount();


Thank you in advance.


Win 7 x64
VS 2008
CJ 15.13

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.188 seconds.