|
Hellow I`m a newbie developer.
In Visual studio 2005 C++, base project type Dialogbox on Picture control, I want to draw line, and write text. just it.
this is my code. please don`t laugh too much.
void CInputDataDlg::DrawCross(void) { LBitmapWindow m_AniWnd; LAnnLine m_Line;
LPRECT lprc = new CRect; L_INT nRet=0; HDC hDC = ::GetDC(m_hWnd);
nRet = m_Line.Create();
if (nRet !=SUCCESS){ MessageBox(_T("Fail to Create")); } else { m_Line.SetLineStyle(ANNLINE_SOLID,0); m_Line.SetLineWidth(5,0); m_Line.SetFixed(TRUE,TRUE,0); m_Line.SetForeColor(0x00FFFFFF,0); lprc->top=10; lprc->bottom=30; lprc->left=10; lprc->right=30; nRet= m_Line.Draw(hDC,lprc);
}
}
create and draw funtion`s return are SUCSSE. but I can`t see any line please tell me. what can I do
if possible give me some example draw line
|