diff options
| author | Bill Spitzak <spitzak@gmail.com> | 2002-04-16 07:47:31 +0000 |
|---|---|---|
| committer | Bill Spitzak <spitzak@gmail.com> | 2002-04-16 07:47:31 +0000 |
| commit | 772b36810d5ae09cdbc3271d5cf8eb9db12e48b6 (patch) | |
| tree | 47717b817028f92d992afff069cb1050a7d976cb /src | |
| parent | 20adf5e2c6a5097838737a5e5823a434b41a4ac6 (diff) | |
Win32 version stores all the info passed to WndProc into fl_msg so an
add_hander method can see it.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2089 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_win32.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 79b4752f3..e521de106 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_win32.cxx,v 1.33.2.37.2.26 2002/04/11 11:52:42 easysw Exp $" +// "$Id: Fl_win32.cxx,v 1.33.2.37.2.27 2002/04/16 07:47:31 spitzak Exp $" // // WIN32-specific code for the Fast Light Tool Kit (FLTK). // @@ -549,7 +549,16 @@ extern void fl_restore_pen(void); static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { + // Copy the message to fl_msg so add_handler code can see it, it is + // already there if this is called by DispatchMessage, but not if + // Windows calls this directly. + fl_msg.hwnd = hWnd; fl_msg.message = uMsg; + fl_msg.wParam = wParam; + fl_msg.lParam = lParam; + //fl_msg.time = ??? + //fl_msg.pt = ??? + //fl_msg.lPrivate = ??? Fl_Window *window = fl_find(hWnd); @@ -1170,5 +1179,5 @@ void Fl_Window::make_current() { } // -// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.26 2002/04/11 11:52:42 easysw Exp $". +// End of "$Id: Fl_win32.cxx,v 1.33.2.37.2.27 2002/04/16 07:47:31 spitzak Exp $". // |
