Click here to Skip to main content
15,890,385 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Rinu_Raj19-Sep-06 18:33
Rinu_Raj19-Sep-06 18:33 
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Stephen Hewitt19-Sep-06 18:57
Stephen Hewitt19-Sep-06 18:57 
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Rinu_Raj19-Sep-06 19:01
Rinu_Raj19-Sep-06 19:01 
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
ANIL KUMAR SHARMA (INDIA)14-Jul-09 19:17
ANIL KUMAR SHARMA (INDIA)14-Jul-09 19:17 
AnswerRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Naveen19-Sep-06 18:48
Naveen19-Sep-06 18:48 
AnswerRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Stephen Hewitt19-Sep-06 18:51
Stephen Hewitt19-Sep-06 18:51 
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
skyapie19-Sep-06 23:34
skyapie19-Sep-06 23:34 
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
skyapie21-Sep-06 1:11
skyapie21-Sep-06 1:11 
Hi again,

thanks for the reply last time....

Do you know how to do the same thing for the events where the user moves a scroll bar or clicks in a list box/list control?

I couldn't get it to work using the OnCommand method, so I used OnNotify. See code here...

BOOL CBaseFormView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) <br />
{<br />
	NMHDR* pNMHDR = (NMHDR*)lParam;<br />
<br />
	/*<br />
	**	I have no clue what 0xFFFFFF4 is.... it just seems to be the value that gets posted<br />
	**	when the user scrolls.<br />
	*/<br />
	if(pNMHDR->code == 0xFFFFFFF4) <br />
	{<br />
		AsyncServicesUpdateInactivityTimer(this->m_hWnd);<br />
	}<br />
	<br />
	return CFormView::OnNotify(wParam, lParam, pResult);<br />
}


Except I'm not sure what the notification codes for selecting something within a list box or list control, or moving the scrollbar are.



Thanks again
Skyapie Big Grin | :-D
GeneralRe: MFC Question - How can I tell if a button has been pressed, not a specific button, but just the event of a button press? Pin
Stephen Hewitt21-Sep-06 13:49
Stephen Hewitt21-Sep-06 13:49 
Questionsubclass a button, how let it know CLICK event Pin
HOW WHAT19-Sep-06 16:47
HOW WHAT19-Sep-06 16:47 
AnswerRe: subclass a button, how let it know CLICK event Pin
Naveen19-Sep-06 17:13
Naveen19-Sep-06 17:13 
GeneralRe: subclass a button, how let it know CLICK event Pin
HOW WHAT19-Sep-06 18:21
HOW WHAT19-Sep-06 18:21 
GeneralRe: subclass a button, how let it know CLICK event Pin
Naveen19-Sep-06 19:14
Naveen19-Sep-06 19:14 
AnswerRe: subclass a button, how let it know CLICK event Pin
Stephen Hewitt19-Sep-06 18:07
Stephen Hewitt19-Sep-06 18:07 
QuestionHow Do I Incorporate mySQL into my web CGI app made in C++ Pin
S0uthy19-Sep-06 16:01
S0uthy19-Sep-06 16:01 
AnswerRe: How Do I Incorporate mySQL into my web CGI app made in C++ Pin
Christian Graus19-Sep-06 16:07
protectorChristian Graus19-Sep-06 16:07 
GeneralRe: How Do I Incorporate mySQL into my web CGI app made in C++ Pin
Stephen Hewitt19-Sep-06 16:10
Stephen Hewitt19-Sep-06 16:10 
GeneralRe: How Do I Incorporate mySQL into my web CGI app made in C++ Pin
S0uthy20-Sep-06 13:54
S0uthy20-Sep-06 13:54 
GeneralRe: How Do I Incorporate mySQL into my web CGI app made in C++ Pin
Christian Graus20-Sep-06 13:59
protectorChristian Graus20-Sep-06 13:59 
QuestionNetwork communication programming problem Pin
zouchao111219-Sep-06 14:22
zouchao111219-Sep-06 14:22 
QuestionCPP Calling Syntax of Member functions. Pin
Bram van Kampen19-Sep-06 13:55
Bram van Kampen19-Sep-06 13:55 
AnswerRe: CPP Calling Syntax of Member functions. Pin
Bram van Kampen19-Sep-06 15:35
Bram van Kampen19-Sep-06 15:35 
AnswerRe: CPP Calling Syntax of Member functions. Pin
Stephen Hewitt19-Sep-06 16:04
Stephen Hewitt19-Sep-06 16:04 
GeneralRe: CPP Calling Syntax of Member functions. Pin
Bram van Kampen24-Sep-06 14:25
Bram van Kampen24-Sep-06 14:25 
GeneralRe: CPP Calling Syntax of Member functions. Pin
Bram van Kampen29-Sep-06 17:01
Bram van Kampen29-Sep-06 17:01 

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.