怎么在STATIC TEXT文本框里显示带下划线的文本?(要整排的)

解决方案 »

  1.   

    为 Static Text 设置字体,加上下划线属性应该就可以了。
      

  2.   

    Static Text怎么设置字体???
      

  3.   

    参看CsuperLinkCtrl
    http://www.chinaoak.com/download/material/network/VCSuperLink.htm
      

  4.   

    LOGFONT lf;对象;有个:lf.lfUnderline 属性。
    设置:
    lf.lfUnderline = TRUE;
    我看的是这样的。
      

  5.   

    BOOL CCsdn17Dlg::OnInitDialog()
    {
    CDialog::OnInitDialog(); // Add "About..." menu item to system menu. // IDM_ABOUTBOX must be in the system command range.
    ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX);
    ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE);
    if (pSysMenu != NULL)
    {
    CString strAboutMenu;
    strAboutMenu.LoadString(IDS_ABOUTBOX);
    if (!strAboutMenu.IsEmpty())
    {
    pSysMenu->AppendMenu(MF_SEPARATOR);
    pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu);
    }
    } // Set the icon for this dialog.  The framework does this automatically
    //  when the application's main window is not a dialog
    SetIcon(m_hIcon, TRUE); // Set big icon
    SetIcon(m_hIcon, FALSE); // Set small icon
    CFont font;
    font.CreateFont(-12,0,0,0,700,
    0,1,0,0,0,0,0,0,
    _T("宋体"));
    m_ctrl.SetFont(&font);
    return TRUE;  // return TRUE  unless you set the focus to a control
    }
    改变表态文本框的id,
    就可以建立关联变量m_ctrl