Jump to content
Software FX Community

2D Pie Control for ChartFX62 Chart1.GalleryObj.Square = False implementation


User (Legacy)

Recommended Posts

I'm trying to implement two lines of code in Visual C++

Chart1.Gallery = Gallery_Pie

Chart1.GalleryObj.Square = False

For the first line it is:

m_chartPtr->_Gallery = Cfx62::Gallery_Pie;

For the second line it looks for me that I need to call

pPie->PutSquare(FALSE); or

pPie->Square = FALSE;

Where pPie is a pointer to the Cfx62::_Pie,

but I do know how I can get a pointer to Cfx62::_Pie object using

m_chartPtr.

Thank you.

Igor.

Link to comment
Share on other sites

I'm trying to implement two lines of code in Visual C++

Chart1.Gallery = Gallery_Pie

Chart1.GalleryObj.Square = False

For the first line it is:

m_chartPtr->_Gallery = Cfx62::Gallery_Pie;

For the second line it looks for me that I need to call

pPie->PutSquare(FALSE); or

pPie->Square = FALSE;

Where pPie is a pointer to the Cfx62::_Pie,

but I do know how I can get a pointer to Cfx62::_Pie object using

m_chartPtr.

Thank you.

Igor.

Link to comment
Share on other sites

  • 2 weeks later...

The solution will be:

static const IID IID_PIE =

{0xdefb3c67,0x85bc,0x4765,

{0xb7,0xbe,0x5f,0x24,0xe3,0xf6,0xc4,0x5a}};

m_chartPtr->_Gallery = Cfx62::Gallery_Pie;

HRESULT hr;

IUnknown* pIUnknown;

Cfx62::_Pie* pPie = NULL;

pIUnknown = m_chartPtr->GetGalleryObj();

hr = pIUnknown->QueryInterface(IID_PIE,(void**)&pPie);

if(SUCCEEDED(hr))

{

if(pPie)

pPie->Square = FALSE;

}

Igor.

Link to comment
Share on other sites

The solution will be:

static const IID IID_PIE =

{0xdefb3c67,0x85bc,0x4765,

{0xb7,0xbe,0x5f,0x24,0xe3,0xf6,0xc4,0x5a}};

m_chartPtr->_Gallery = Cfx62::Gallery_Pie;

HRESULT hr;

IUnknown* pIUnknown;

Cfx62::_Pie* pPie = NULL;

pIUnknown = m_chartPtr->GetGalleryObj();

hr = pIUnknown->QueryInterface(IID_PIE,(void**)&pPie);

if(SUCCEEDED(hr))

{

if(pPie)

pPie->Square = FALSE;

}

Igor.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...