CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Threaded View

  1. #3
    Join Date
    Jun 2003
    Posts
    16
    try it out.

    CEdit *e;
    e=(CEdit*)GetDlgItem(IDC_SEARCHTEXT);
    e->SetSel(-1,m_SEARCHTEXT.GetLength(),FALSE);

    //IDC_SEARCHTEXT => id of the edit control
    //m_SEARCHTEXT => CString variable of IDC_SEARCHTEXT
    Last edited by rdonline1; June 25th, 2003 at 05:58 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured