I’ve just started to use Message and overriding handleMessage() in my custom component.
I want to send a massage from thread which let component should repaint(), TableListBox::updateContents(), etc.
Message can take four arguments but there are no restrictions. How should I define the “magic number” for my custom messages? Are there any similarities to WM_USER in WIN32 API?
There aren’t any predefined numbers, though it’s unlikely you’ll cause a conflict. If you’re worried, you can also use a subclass of Message that contains whatever data you want, then try to dynamic_cast the incoming message to this class to see if it’s one of yours.