Yes, exactly. Windows messages (I want to avoid having to write long case statements in message loops) - that's what I mean. I'd be thankful if anyone could point me to the right direction.
// pseudo-code!
// Lets say it's a botton;
switch(message)
{
case WM_LBUTTONDBLCLK:
onDoubleClick(message);
break;
//...
};
// member function
void onDoubleClick(Message message)
{
doSomething(message);
onDoubleClick_(arg1, arg2);
}
// member
boost::signals2::signal