added readme

git-svn-id: trunk@13395 -
This commit is contained in:
paul 2007-12-20 01:44:09 +00:00
parent db7b4e7e9a
commit 4708021126
2 changed files with 15 additions and 0 deletions

1
.gitattributes vendored
View File

@ -1689,6 +1689,7 @@ examples/messagedialogs.lpi svneol=native#text/plain
examples/messagedialogs.pp svneol=native#text/pascal
examples/messages/project1.lpi svneol=native#text/plain
examples/messages/project1.lpr svneol=native#text/pascal
examples/messages/readme.txt svneol=native#text/plain
examples/messages/unit1.lfm svneol=native#text/plain
examples/messages/unit1.lrs svneol=native#text/pascal
examples/messages/unit1.pas svneol=native#text/pascal

View File

@ -0,0 +1,14 @@
This example demonstrates usage of PostMessage, SendMessage and message methods in Lazarus and FreePascal.
PostMessage and SendMessage are not fully compatible with windows. For example passing windows messages to
controls will not do anything except return of this message to message handler (for example if you pass
WM_PAINT to control - it will not paint itself).
The only use of PostMessage and SendMessage outside windows consist in ability to call your message handlers.
SendMessage calls message handler and doesnot return until message become processed by message handler.
PostMessage adds message to the message queue and doenot wait while message become processed.
Please do not use message from windows system range. Use only messages >= LM_USER.
For more info read comments in code.