为什么我这么创建CStatic在窗体上看不见!
CStatic sts;
CWnd* pWnd;
pWnd=this->GetActiveWindow();
//CStatic* pStatic=(CStatic*)GetDlgItem(IDC_STAICWINDOW); // TODO: Add your control notification handler code here
if (!sts.Create("Errorwwwwwwwwwww", WS_CHILD|WS_VISIBLE|SS_CENTER,
CRect(100,100,100,100), pWnd))
{
AfxMessageBox("Error!");
// dc=sts.GetDC();
// dc->SetBkColor(RGB(250,100,100));
// sts.SetWindowText("dddddddddddddddd");
//dc->TextOut(100,100,"sssssss");
}
if (sts.GetSafeHwnd())
{
sts.MoveWindow(100,50,50,50);
}