I need to notify all my open windows of changes in some global settings.
How do I do that? My program does not store references to all of them...
The Delphi documentation is pretty useless :-(
They tell me how to define and handle custom messages (which I knew), but not how to create and send them!!
What I have is this:
TYPE TWMViewChange = record
Msg : Cardinal;
TMyForm = class(TForm)
procedure WMViewChange(VAR Msg: TWMViewChange); message WM_ViewChange;
I tried PostMessage(Application.Handle, WM_VIEWCHANGE, 0,0); but it didn't work (message didn't "arrive" in my second form (modal))
Again: This message should be sent to all open windows because they might have to adjust their layout...
I hope this will be easy for most "experts" :-)))
Thanks for your help!