Sorin,
I've followed this thread with some interest. I thought, given your desire to learn more about the API, that the following comments might be of interest.
While both GetMessage and PeekMessage require a structure, what is contained in the lParam and wParam members is strictly dependent on message to be sent. In other words, it may be a pointer or it may be a value. For example, if I wanted to tell all parent windows to reload a portion of WIN.INI, I would send a pointer to a string with the section name. However, sending a message to a window telling it to return a small or large icon handle, requires a Boolean value, not a pointer.
In regards to the need to pass messages between open forms, I think that the best way to accomplish this would be via a forms manager class that would update custom properties on the form. In other words, when a form needed to send a message to another form, it would do so via the manager class. When the receiver was activated, then it could check the property. Or did I miss something here?
George
George
Ubi caritas et amor, deus ibi est