#define   IDC_MYLINK  0x9000   
CLinkCtrl *plink;
plink = new CXLinkCtrl();
plink->Create(LWS_TRANSPARENT,CRect(10, 10, 100, 30), this, IDC_MYLINK);上面的代码运行出来报错,我找了一下午都没找到关系动态创建SysLink Control的帖子本人是新手。

解决方案 »

  1.   

     
    plink->Create(CCS_BOTTOM,CRect(10, 10, 100, 30), this, IDC_MYLINK);
    dwStyle
    Specifies the link control's style. Apply any combination of control styles. See Common Control Styles in the Windows SDK for more information.
      

  2.   

    CLinkCtrl *plink;
    plink = new CLinkCtrl();
    plink->Create(CCS_BOTTOM|WS_CHILD   |   WS_VISIBLE ,CRect(10, 10, 100, 30), this, IDC_MYLINK); plink-> SetWindowText(_T(" <A   HREF=\"http:\\\\www.help.com\"> Website </A> ")); 
      

  3.   

    不好意思,忙到现在才来回复,,,
    fishion 的代码还是不行 报错
      

  4.   

    没错吧,我在VS08里正常运行呀,在OnInitDialog里调用