amando1957 Messages: 57 Registered: November 2007 Location: Wien/Vienna/Viden
Member
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?
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.
amando1957 Messages: 57 Registered: November 2007 Location: Wien/Vienna/Viden
Member
Quote:
IMO, event loop is not running.
I made it like this now:
GUI_APP_MAIN
{
midi_in inApp;
///// not this:
// inApp.Run();
///// but this:
TopWindow().Run();
}
Now I have the grey window as desired, but the WM_KEYDOWN is not handled anymore.
I'll play around a little and find out former or later.
Thanks for the hints.