diff options
| author | Pierre Ossman <ossman@cendio.se> | 2013-12-13 10:26:03 +0000 |
|---|---|---|
| committer | Pierre Ossman <ossman@cendio.se> | 2013-12-13 10:26:03 +0000 |
| commit | f7e88141c3db591149d4d569e6852843b61d9c92 (patch) | |
| tree | 05045547e7bf7bbe2695e8d9f1a67ea208de14b7 /documentation/src | |
| parent | 7bffc7bd3be1cc3e5c27c3a45e7002ed3711bbc6 (diff) | |
Catch WM_QUIT and convert it to SIGTERM. This gives Windows
applications a convenient way to request termination, rather
than forcing it. And it does so in a way that mimics UNIX's
way, allowing code reuse.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'documentation/src')
| -rw-r--r-- | documentation/src/osissues.dox | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/documentation/src/osissues.dox b/documentation/src/osissues.dox index 18232c670..07fd508bf 100644 --- a/documentation/src/osissues.dox +++ b/documentation/src/osissues.dox @@ -479,6 +479,15 @@ In FLTK, all strings, including filenames, are UTF-8 encoded. The utility functi fl_fopen() and fl_open() allow to open files potentially having non-ASCII names in a cross-platform fashion, whereas the standard fopen()/open() functions fail to do so. +\subsection osissues_wm_quit Responding to WM_QUIT + +FLTK will intercept WM_QUIT messages that are directed towards the +thread that runs the main loop. These are converted to SIGTERM signals +via \c raise(). This allows you to deal with outside termination +requests with the same code on both Windows and UNIX systems. +Other processes can send this message via \c PostThreadMessage() in +order to request, rather than force your application to terminate. + \subsection osissues_win32_messages Handling Other WIN32 Messages By default a single WNDCLASSEX called "FLTK" is |
