GDI + drawing has recently been doing, modal dialog box can be OnPaint () function, through GetDlgItem (nID) - & gt; GetDC () to obtain the DC drawing, want to ask how can in a modal dialog box drawing, is in m_pimmodelDlg - & gt; Create (IDD_DIALOG1, this) behind the writing drawing function? I put a Picture in dialog Control? How like a modal dialog box that can not get the DC, strives for the great god gives directions
If (m_pimmodelDlg==NULL) {//determine whether the dialog is point to
M_pimmodelDlg=new CImmodelDlg ();//points to a non die example dialog