Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » Execute(), LPARAM and WPARAM
Re: Execute(), LPARAM and WPARAM [message #19141 is a reply to message #19132] Fri, 14 November 2008 21:23 Go to previous messageGo to previous message
amando1957 is currently offline  amando1957
Messages: 57
Registered: November 2007
Location: Wien/Vienna/Viden
Member

Made it like this now:
LRESULT midi_in::WindowProc(
	UINT message, WPARAM wParam, LPARAM lParam)
{
	switch(message)
	{
	case MM_MIM_DATA:
		getMidiInData(lParam);			
		break;
	case WM_KEYDOWN:
		if (wParam==27) 
			if (PromptYesNo("Want to quit proggy?"))
			{	Ctrl::ExitWin32();
			}
		return 0;
	}
	
	return Ctrl::WindowProc(message, wParam, lParam);
}

and that runs, given the call of the base function on bottom.
Thanks for the hint.

Martin
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: callbacks and objects
Next Topic: How can I stop the timer?
Goto Forum:
  


Current Time: Fri May 10 22:40:29 CEST 2024

Total time taken to generate the page: 0.02263 seconds