User (Legacy) Posted July 27, 2006 Report Share Posted July 27, 2006 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 More sharing options...
User (Legacy) Posted July 27, 2006 Author Report Share Posted July 27, 2006 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 More sharing options...
User (Legacy) Posted August 4, 2006 Author Report Share Posted August 4, 2006 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 More sharing options...
User (Legacy) Posted August 4, 2006 Author Report Share Posted August 4, 2006 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.