Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. on button stop control transfers to a option button click code

on button stop control transfers to a option button click code

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VCProgrammer
    wrote on last edited by
    #1

    Hi all, I have made a Dialog based application, on that dialog I have 3 option buttons and one push button. On click of option buttons a variable called flag value is being set to 1,2 or 3 respectively. my problem is that when i click on push button i hide it and after that flow of control automatically transfers to any option button click code and it changes the flag value.... my stop button and option button is not having any relation with each other.... I have tried it in new application it works fine... but i want to correct it in my exsisting application... How can i resolve it Thanks in advance

    D P 2 Replies Last reply
    0
    • V VCProgrammer

      Hi all, I have made a Dialog based application, on that dialog I have 3 option buttons and one push button. On click of option buttons a variable called flag value is being set to 1,2 or 3 respectively. my problem is that when i click on push button i hide it and after that flow of control automatically transfers to any option button click code and it changes the flag value.... my stop button and option button is not having any relation with each other.... I have tried it in new application it works fine... but i want to correct it in my exsisting application... How can i resolve it Thanks in advance

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      VCProgrammer wrote:

      I have made a Dialog based application, on that dialog I have 3 option buttons...

      Do you mean radio button?

      VCProgrammer wrote:

      my stop button and option button is not having any relation with each other....

      Which means what?

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

      V 1 Reply Last reply
      0
      • V VCProgrammer

        Hi all, I have made a Dialog based application, on that dialog I have 3 option buttons and one push button. On click of option buttons a variable called flag value is being set to 1,2 or 3 respectively. my problem is that when i click on push button i hide it and after that flow of control automatically transfers to any option button click code and it changes the flag value.... my stop button and option button is not having any relation with each other.... I have tried it in new application it works fine... but i want to correct it in my exsisting application... How can i resolve it Thanks in advance

        P Offline
        P Offline
        prasad_som
        wrote on last edited by
        #3

        Check if you are duplicating button ids in any way. or using wrong message mappings.

        1 Reply Last reply
        0
        • D David Crow

          VCProgrammer wrote:

          I have made a Dialog based application, on that dialog I have 3 option buttons...

          Do you mean radio button?

          VCProgrammer wrote:

          my stop button and option button is not having any relation with each other....

          Which means what?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Some people are making such thorough preparation for rainy days that they aren't enjoying today's sunshine." - William Feather

          V Offline
          V Offline
          VCProgrammer
          wrote on last edited by
          #4

          yes radio buttons...

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups