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. CButton in a CDialogBar are disabled

CButton in a CDialogBar are disabled

Scheduled Pinned Locked Moved C / C++ / MFC
comquestionlearning
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.
  • R Offline
    R Offline
    Remi Morin
    wrote on last edited by
    #1

    Whit the resource editor I've created a DialogBar whit button, combo box, check box... When I wan't to enable/disable them I use the member variable I've create just for them and call theControlVariable.EnableWindow(TRUE); and it's work very fine... except for push button who become enable and immediatly after disabled... why? thanks Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com

    T 1 Reply Last reply
    0
    • R Remi Morin

      Whit the resource editor I've created a DialogBar whit button, combo box, check box... When I wan't to enable/disable them I use the member variable I've create just for them and call theControlVariable.EnableWindow(TRUE); and it's work very fine... except for push button who become enable and immediatly after disabled... why? thanks Remi Morin Rmorin@Operamail.com Remi.Morin@Lyrtech.com

      T Offline
      T Offline
      Tomasz Sowinski
      wrote on last edited by
      #2

      CDialogBar uses command UI update mechanism for buttons. You should add ON_COMMAND handler in the frame class - this will solve the problem of disabled button and provide a place for code which will be executed when user pushes the button. If you want to conditionally enable/disable the button, add ON_UPDATE_COMMAND_UI as well. Tomasz Sowinski -- http://www.shooltz.com

      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