control styles
-
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
-
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
EnableWindow() // TRUE or FALSE (controls are windows) ShowWindow() // SW_SHOW or SW_HIDE Trust in the code Luke. Yea right!
-
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
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 ]