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. control styles

control styles

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++wpfhelp
3 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.
  • E Offline
    E Offline
    emrosa
    wrote on last edited by
    #1

    Hello...I have a form with some edit controls boxes and buttons. There are two modes (1 and 2). In mode 1 some edits controls should be available for editing, and a button visible and available; and other controls should be unavailable for editing and another button not visible. Changing to mode 2 invert the availability. My problem is that I do not know if this is possible to do it at runtime. If this is possible, how do I do it? I know where to put the code to enable and unenable the controls, but I would like to know what are the visual c++ statements to do this. Can anyone give me a hand? What I meant is how can I change the edit control styles and button control styles, specifically WS_TABSTOP and WM_ENABLE? This at run time Thanks Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311

    J R 2 Replies Last reply
    0
    • E emrosa

      Hello...I have a form with some edit controls boxes and buttons. There are two modes (1 and 2). In mode 1 some edits controls should be available for editing, and a button visible and available; and other controls should be unavailable for editing and another button not visible. Changing to mode 2 invert the availability. My problem is that I do not know if this is possible to do it at runtime. If this is possible, how do I do it? I know where to put the code to enable and unenable the controls, but I would like to know what are the visual c++ statements to do this. Can anyone give me a hand? What I meant is how can I change the edit control styles and button control styles, specifically WS_TABSTOP and WM_ENABLE? This at run time Thanks Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311

      J Offline
      J Offline
      John R Shaw
      wrote on last edited by
      #2

      EnableWindow() // TRUE or FALSE (controls are windows) ShowWindow() // SW_SHOW or SW_HIDE Trust in the code Luke. Yea right!

      1 Reply Last reply
      0
      • E emrosa

        Hello...I have a form with some edit controls boxes and buttons. There are two modes (1 and 2). In mode 1 some edits controls should be available for editing, and a button visible and available; and other controls should be unavailable for editing and another button not visible. Changing to mode 2 invert the availability. My problem is that I do not know if this is possible to do it at runtime. If this is possible, how do I do it? I know where to put the code to enable and unenable the controls, but I would like to know what are the visual c++ statements to do this. Can anyone give me a hand? What I meant is how can I change the edit control styles and button control styles, specifically WS_TABSTOP and WM_ENABLE? This at run time Thanks Eric Manuel Rosales Pena Alfaro PhD student Unversity of Essex Wivenhoe Park Colchester, CO4 3SQ Essex, Uk email: emrosa@essex.ac.uk tel: +44-01206-87311

        R Offline
        R Offline
        Renjith Ramachandran
        wrote on last edited by
        #3

        Your_Control.EnableWindow(1) ->Enables control in run time put the arg to 0 to disable..


        [ It is possible to represent everything in this universe by using 0 and 1 ]

        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