for example,
Code: Select all
CStatic* stc = (CStatic *)GetDlgItem(IDC_STATIC_ENERGY); // i want to draw in ID_PANEL1, instead of IDC_STATIC_ENERGY
CRect rect;
CClientDC dc(stc);
stc->GetClientRect(&rect);
CBrush brush;
brush.CreateSolidBrush(RGB(255, 255, 255));
FillRect(dc, &rect, brush);
dc.MoveTo(0, rect.bottom/2);
for (int n=0; n<frameN; n++)
{
//dc.LineTo(n/amp_scale2,2*feature2d[n][0]);
dc.LineTo(n,2*feature2d[n][0]);
}
brush.DeleteObject();
While reading the Reference, one by one, is not easy to learn.
please teach me about draw data(line) by wxwidgets.