Print Page | Close Window

GetSelectedItems returns 1 in XTP_PGN_SELECTION_CH

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Property Grid
Forum Description: Topics Related to Codejock Property Grid
URL: http://forum.codejock.com/forum_posts.asp?TID=16435
Printed Date: 20 September 2024 at 11:23pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: GetSelectedItems returns 1 in XTP_PGN_SELECTION_CH
Posted By: apautrot
Subject: GetSelectedItems returns 1 in XTP_PGN_SELECTION_CH
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net