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

Threaded View

  1. #5
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: MFC Concept Help- Radio Buttons

    I don't think I really understand why your design has to be like this but if you really need to check the radio button like that you can use GetDlgItem http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx.

    A better way in my opinion is to add code that handles the radio buttons (in the GUI code) and let that code refine the information into an enum or similar to be accessed in the worker thread. Don't forget to make it thread safe http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

    Doing it that way makes it easier if you later on decide to replace the radio buttons with for instance a combox.
    Last edited by S_M_A; October 1st, 2011 at 10:23 AM.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

Tags for this Thread

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