I created a common dialog class(CCommonDlg) inherited from CDialogEx.
Now I am inheriting CMyDialog from CCommonDialog. Passed CMyDialog dialog resource ID to base class CCommonDialog.I am trying to draw a circle on the dialog. So in CMyDialog::OnPaint() I tried the below code:
CPaintDC dc(this);
CRect rect;
GetWindowRect(&rect);
ScreenToClient(rect);
dc.Ellipse(rect);
While running i am seeing a part of the bigger circle. Its not fitting to the dialog. So i believe GetWindowRect is not giving me proper dialog dimension.
Can anyone please help on this. NOTE: CommonDlg is one DLL and CMyDlg is anther dll. Thanks