summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-03-04 21:20:55 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-03-04 21:20:55 +0000
commit9fdae51b8c687674bada77125e91bf2b80967e72 (patch)
treef4ad2d9694c901c1550345b405df006bdda73af9 /src
parent9ae933d0045daa9bddef9002ad7863747cbfca7d (diff)
Added #define for WM_SYNCPAINT if needed.
WM_NCPAINT doesn't do the trick - need to use WM_SYNCPAINT... git-svn-id: file:///fltk/svn/fltk/trunk@370 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index 9c4120034..8d755bd04 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_win32.cxx,v 1.32 1999/03/04 19:01:48 mike Exp $"
+// "$Id: Fl_win32.cxx,v 1.33 1999/03/04 21:20:55 mike Exp $"
//
// WIN32-specific code for the Fast Light Tool Kit (FLTK).
//
@@ -38,6 +38,14 @@
#include <time.h>
#include <winsock.h>
+//
+// WM_SYNCPAINT is an "undocumented" message, which is finally defined in
+// VC++ 6.0.
+//
+#ifndef WM_SYNCPAINT
+# define WM_SYNCPAINT 0x0088
+#endif /* !WM_SYNCPAINT */
+
////////////////////////////////////////////////////////////////
// interface to poll/select call:
@@ -330,7 +338,7 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
static char buffer[2];
static int cnt=0;
- if(uMsg == WM_NCPAINT) {
+ if(uMsg == WM_SYNCPAINT) {
if(cnt) {
InvalidateRect(fl_window,0,FALSE);
cnt = 0;
@@ -899,5 +907,5 @@ void Fl_Window::make_current() {
}
//
-// End of "$Id: Fl_win32.cxx,v 1.32 1999/03/04 19:01:48 mike Exp $".
+// End of "$Id: Fl_win32.cxx,v 1.33 1999/03/04 21:20:55 mike Exp $".
//