Jump to content
Software FX Community

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


User (Legacy)
 Share

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...