Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralErrors Pin
flora_k12-May-03 4:50
flora_k12-May-03 4:50 
GeneralRe: Errors Pin
flora_k12-May-03 4:53
flora_k12-May-03 4:53 
GeneralRe: Errors Pin
G. Steudtel12-May-03 5:11
G. Steudtel12-May-03 5:11 
GeneralRe: Errors Pin
David Crow12-May-03 5:11
David Crow12-May-03 5:11 
GeneralRe: Errors Pin
Iain Clarke, Warrior Programmer12-May-03 5:13
Iain Clarke, Warrior Programmer12-May-03 5:13 
GeneralSpinControl Help Pin
VanHlebar12-May-03 4:45
VanHlebar12-May-03 4:45 
GeneralRe: SpinControl Help Pin
Iain Clarke, Warrior Programmer12-May-03 5:05
Iain Clarke, Warrior Programmer12-May-03 5:05 
GeneralRe: SpinControl Help Pin
VanHlebar12-May-03 16:25
VanHlebar12-May-03 16:25 
Iain,
Thanks for the help. I have used the EN_CHANGE message for each edit control and then I turned off the other spin controls if one was increased. The problem is that when the user clicks up again it will turn them all back on again. Here is a snippet of my code. Any ideas? I want to be able to only increase one of the 6 spin controls then turn off the rest. If the users then decreases the one spin control by one then it needs to turn the other controls back on again.

	<br />
void CMyDialog::OnChangeEditOne()<br />
{<br />
if(!bFirstRun)<br />
	{<br />
		if(!bOne)<br />
		{<br />
			m_cTwo.EnableWindow(FALSE);<br />
			m_cThree.EnableWindow(FALSE);<br />
			m_cFour.EnableWindow(FALSE);<br />
			m_cFive.EnableWindow(FALSE);<br />
			m_cSix.EnableWindow(FALSE);<br />
			m_cOk.EnableWindow(TRUE);<br />
			bOne = TRUE;<br />
		}<br />
		else<br />
		{<br />
			m_cTwo.EnableWindow(TRUE);<br />
			m_cThree.EnableWindow(TRUE);<br />
			m_cFour.EnableWindow(TRUE);<br />
			m_cFive.EnableWindow(TRUE);<br />
			m_cSix.EnableWindow(TRUE);<br />
			m_cOk.EnableWindow(FALSE);<br />
			bOne = FALSE;<br />
		}<br />
	}<br />
	else<br />
		bFirstRun = FALSE;<br />
}<br />


Thanks again.
-Eric
GeneralRe: SpinControl Help Pin
VanHlebar12-May-03 16:26
VanHlebar12-May-03 16:26 
GeneralDynamic loading of buttons Pin
JensB12-May-03 4:33
JensB12-May-03 4:33 
GeneralRe: Dynamic loading of buttons Pin
David Crow12-May-03 4:38
David Crow12-May-03 4:38 
GeneralRe: Dynamic loading of buttons Pin
JensB12-May-03 4:43
JensB12-May-03 4:43 
GeneralRe: Dynamic loading of buttons Pin
David Crow12-May-03 5:06
David Crow12-May-03 5:06 
GeneralRe: Dynamic loading of buttons Pin
basementman12-May-03 5:23
basementman12-May-03 5:23 
GeneralRe: Dynamic loading of buttons Pin
David Crow12-May-03 5:56
David Crow12-May-03 5:56 
GeneralCPropertySheet Pin
RalfPeter12-May-03 4:23
RalfPeter12-May-03 4:23 
GeneralRe: CPropertySheet Pin
JensB12-May-03 4:30
JensB12-May-03 4:30 
GeneralRe: CPropertySheet Pin
David Crow12-May-03 4:36
David Crow12-May-03 4:36 
Generalsimple virtual method design q. Pin
Maximilien12-May-03 4:06
Maximilien12-May-03 4:06 
GeneralRe: simple virtual method design q. Pin
G. Steudtel12-May-03 4:42
G. Steudtel12-May-03 4:42 
GeneralCompile error c2664 Pin
Claude Gagnon12-May-03 3:56
Claude Gagnon12-May-03 3:56 
GeneralRe: Compile error c2664 Pin
David Crow12-May-03 4:29
David Crow12-May-03 4:29 
GeneralRe: Compile error c2664 Pin
Claude Gagnon12-May-03 4:42
Claude Gagnon12-May-03 4:42 
GeneralRe: Compile error c2664 Pin
G. Steudtel12-May-03 4:51
G. Steudtel12-May-03 4:51 
GeneralRe: Compile error c2664 Pin
Jason Henderson12-May-03 7:00
Jason Henderson12-May-03 7:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.