Click here to Skip to main content
16,004,761 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionparticular double to CString to edit control Pin
Desmo1611-Oct-06 22:02
Desmo1611-Oct-06 22:02 
AnswerRe: particular double to CString to edit control Pin
Ranjan Shrestha11-Oct-06 22:11
Ranjan Shrestha11-Oct-06 22:11 
GeneralRe: particular double to CString to edit control Pin
Desmo1612-Oct-06 1:35
Desmo1612-Oct-06 1:35 
GeneralRe: particular double to CString to edit control Pin
Hamid_RT13-Oct-06 7:42
Hamid_RT13-Oct-06 7:42 
QuestionIntercept "TextOut" API Pin
zh.w11-Oct-06 22:00
zh.w11-Oct-06 22:00 
AnswerRe: Intercept "TextOut" API Pin
Hamid_RT12-Oct-06 2:04
Hamid_RT12-Oct-06 2:04 
AnswerRe: Intercept "TextOut" API Pin
Mark Salsbery12-Oct-06 5:40
Mark Salsbery12-Oct-06 5:40 
QuestionCButton - States Pin
Andy20211-Oct-06 21:41
Andy20211-Oct-06 21:41 
I would like to highlight the state of the button when pressed; i.e. show its 'ON' then reset its state when pressed again - 'OFF'. The following code does not quiet do what I require and I have looked at the methods and not found anything that would do.

void CTabOne::OnBnClickedRelayButton()<br />
{<br />
	// Maintain the button state along with the bool variable<br />
	if(m_bRelayState)<br />
	{<br />
		m_cRelayButton.SetState(FALSE);<br />
		m_cRelayButton.SetWindowTextA("OFF");<br />
		m_bRelayState = false;<br />
	}<br />
	else<br />
	{<br />
		m_cRelayButton.SetState(TRUE);<br />
		m_cRelayButton.SetWindowTextA("ON");<br />
		m_bRelayState = true;<br />
	}<br />
}


Any suggestions please.

Andy.
AnswerRe: CButton - States Pin
toxcct11-Oct-06 21:57
toxcct11-Oct-06 21:57 
AnswerRe: CButton - States Pin
singersinger11-Oct-06 22:19
singersinger11-Oct-06 22:19 
AnswerRe: CButton - States Pin
Hamid_RT12-Oct-06 7:32
Hamid_RT12-Oct-06 7:32 
QuestionError Message Function Pin
Programm3r11-Oct-06 21:29
Programm3r11-Oct-06 21:29 
AnswerRe: Error Message Function Pin
Cedric Moonen11-Oct-06 21:49
Cedric Moonen11-Oct-06 21:49 
QuestionRe: Error Message Function [modified] Pin
Programm3r11-Oct-06 21:53
Programm3r11-Oct-06 21:53 
AnswerRe: Error Message Function Pin
Cedric Moonen11-Oct-06 22:16
Cedric Moonen11-Oct-06 22:16 
GeneralRe: Error Message Function Pin
Programm3r11-Oct-06 22:27
Programm3r11-Oct-06 22:27 
GeneralRe: Error Message Function Pin
Cedric Moonen11-Oct-06 22:38
Cedric Moonen11-Oct-06 22:38 
GeneralRe: Error Message Function Pin
Mark Salsbery12-Oct-06 5:59
Mark Salsbery12-Oct-06 5:59 
Questionclosing the splash-screen when any keyboard key is pressed Pin
Veeresh Hiremath11-Oct-06 21:22
Veeresh Hiremath11-Oct-06 21:22 
AnswerRe: closing the splash-screen when any keyboard key is pressed Pin
Ranjan Shrestha11-Oct-06 22:08
Ranjan Shrestha11-Oct-06 22:08 
Questionbitmap in button Pin
zizzzz11-Oct-06 21:12
zizzzz11-Oct-06 21:12 
AnswerRe: bitmap in button Pin
Programm3r11-Oct-06 21:36
Programm3r11-Oct-06 21:36 
AnswerRe: bitmap in button Pin
Veeresh Hiremath11-Oct-06 21:41
Veeresh Hiremath11-Oct-06 21:41 
AnswerRe: bitmap in button Pin
Hamid_RT12-Oct-06 2:03
Hamid_RT12-Oct-06 2:03 
QuestionHow to send Trace message to file instead of debugger? Pin
ccp99911-Oct-06 21:10
ccp99911-Oct-06 21:10 

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.