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 #19132 is a reply to message #19125] Fri, 14 November 2008 11:36 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
amando1957 wrote on Thu, 13 November 2008 12:50

Hi to all,

I tried an event handler like this:
class midi_in : public Withmidi_inLayout<TopWindow>
{};

GUI_APP_MAIN
{
	midi_in inApp;
	// "lpGot" is just a dummy:
	LPARAM lpGot;
			
	for(;;)
		switch(inApp.Execute())
		{
		// for this I need the LPARAM and WPARAM:
		case MM_MIM_DATA:
			inApp.getMidiInData(lpGot);			
			break;
		case WM_KEYDOWN:
			PromptOK(t_("Want to quit proggy?"));
			return;
		}
	
	inApp.Run();
}

How can I read the LPARAM and WPARAM values now?
Are there any get-functions?

Martin


Not sure what "inApp.Execute" does and how it returns windows message.

However, to achieve what you need, override

	virtual LRESULT Ctrl::WindowProc(UINT message, WPARAM wParam, LPARAM lParam);


Mirek
 
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 19:34:34 CEST 2024

Total time taken to generate the page: 0.02246 seconds