你都说了你要动态的创建static了,还考虑个数干吗?

解决方案 »

  1.   


    动态创建了,可是没显示出来啊,我需要在OnPaint中创建!
            CStatic *pshow = new CStatic();
    pshow->Create(_T("my static"), WS_CHILD|WS_VISIBLE|SS_CENTER, CRect(40,40,50,45),this);
    pshow->ModifyStyle(0xF,SS_ICON); 
      

  2.   

    坐标不对吧,要动态创建就应该根据那个红点的坐标来算static的坐标
      

  3.   

    自己派生一个cwnd,在onpaint函数里面绘制图片和文字,然后动态创建这个控件,注意控制好大小
      

  4.   

    直接上  LabWindow     界面控件,一点都不用愁哈   
      

  5.   

    可以试试CListCtrl 的ICON模式
    List view controls can display their contents in four different ways, called "views." 
    Icon view 
    Each item appears as a full-sized icon (32 x 32 pixels) with a label below it. The user can drag the items to any location in the list view window. 
      

  6.   


    这位说的对,派生在onpaint,想怎么自绘就怎么自绘
      

  7.   

    问题解决了,so easy! list control控件选择ICON就行了!!