In the example program, the Create method is used as follows:
BOOL CCReadQueryDlg::OnInitDialog()
{
CDialog::OnInitDialog();
...
CRect rect;
GetClientRect(rect);
rect.left = 250;
rect.top = 10;
rect.bottom -= 250;
rect.right -= 10;
m_pieChart.Create(L"Pie Chart", rect, this, 1);
Please refer:
A Simple Pie Chart Control - Improved 3-D Pie Chart[
^]