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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Menu Controls

Menu Controls

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
2 Posts 2 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.
  • E Offline
    E Offline
    Eversman
    wrote on last edited by
    #1

    Hey, I have this menu, and I have the options to subtract a certain number from a value selected from a combo box which is displayed in an edit box, and when you select the subtract function, depending on which one you use, it is to subtract that amount from the edit box variable. Here is the code for them. void CDEPDlg::OnOptionsAltertimeTotalcyclingSubtract10minutes() { // TODO: Add your command handler code here if(totalcycling<=0) { totalcycling-=10; } } that is jsut one of the options, I figure that if I can get one working I can get the others working too. The question is, It is not subtractiong the amount, how can I get it to subtract the amount? Any help would be great. Thanks

    D 1 Reply Last reply
    0
    • E Eversman

      Hey, I have this menu, and I have the options to subtract a certain number from a value selected from a combo box which is displayed in an edit box, and when you select the subtract function, depending on which one you use, it is to subtract that amount from the edit box variable. Here is the code for them. void CDEPDlg::OnOptionsAltertimeTotalcyclingSubtract10minutes() { // TODO: Add your command handler code here if(totalcycling<=0) { totalcycling-=10; } } that is jsut one of the options, I figure that if I can get one working I can get the others working too. The question is, It is not subtractiong the amount, how can I get it to subtract the amount? Any help would be great. Thanks

      D Offline
      D Offline
      Dreamz
      wrote on last edited by
      #2

      Is the "totalcycling" is EditBox member variable. Then try with UpdateData()

      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