Print Page | Close Window

CXTPPropertyGrid::GetGridView

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=24030
Printed Date: 26 April 2024 at 4:22pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropertyGrid::GetGridView
Posted By: lrenoux
Subject: CXTPPropertyGrid::GetGridView
Date Posted: 29 July 2020 at 9:27am

Hi there,

One bug in new scrollable view handling

CXTPPropertyGridView& CXTPPropertyGrid::GetGridView() const
{
if (NULL == m_pView)
{
m_pView = CreateView();
m_pView->m_pGrid = (CXTPPropertyGrid*)this;
}

CXTPScrollablePropertyGridListBox* pScrollableView =
DYNAMIC_DOWNCAST(CXTPScrollablePropertyGridListBox, m_pView);
if (NULL != m_pView) <==== Should be NULL != pScrollableView 
{
CXTPPropertyGridView* pEmbeddedView = DYNAMIC_DOWNCAST(CXTPPropertyGridView,
   pScrollableView->GetControl());
if (NULL != pEmbeddedView)
{
return *pEmbeddedView;
}
}

return *m_pView;
}

L.



Replies:
Posted By: lrenoux
Date Posted: 29 July 2020 at 9:39am
And I add that it would be useful to declare the class CXTPScrollablePropertyGridListBox in .h so that we can inherite from it

I forgot Codejock 19.2.0

Thx.

L.



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