CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2002
    Posts
    8

    How to retrieve control ID

    Hi,

    Given a pointer to a control (radiobutton) on a dialog box, how can I retrieve the control's resource ID?

    Please help. Thanks.

  2. #2
    Join Date
    Aug 2001
    Location
    Minnesota, USA
    Posts
    801
    pYourRadioButton->GetDlgCtrlID() will do it for you.

    Chris Richardson

  3. #3
    Join Date
    Oct 2000
    Location
    India
    Posts
    489
    Use GetDlgCtrlID()

  4. #4
    Join Date
    May 2002
    Posts
    8
    thanks everyone.

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