Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Property Grid
  New Posts New Posts RSS Feed - CXTPPropertyGrid::GetGridView
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropertyGrid::GetGridView

 Post Reply Post Reply
Author
Message
lrenoux View Drop Down
Groupie
Groupie


Joined: 20 April 2009
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote lrenoux Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropertyGrid::GetGridView
    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.
Back to Top
lrenoux View Drop Down
Groupie
Groupie


Joined: 20 April 2009
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote lrenoux Quote  Post ReplyReply Direct Link To This Post 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.
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.125 seconds.