From be46128d75ff8f2739b856dcc4ec41bebb90a666 Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Thu, 9 Sep 2010 10:47:04 -0700 Subject: Adding the SetRedraw() directive - only for Windows. --- iup/src/win/iupwin_common.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'iup/src/win/iupwin_common.c') diff --git a/iup/src/win/iupwin_common.c b/iup/src/win/iupwin_common.c index 0f53e68..afa4235 100755 --- a/iup/src/win/iupwin_common.c +++ b/iup/src/win/iupwin_common.c @@ -100,6 +100,11 @@ void iupdrvRedrawNow(Ihandle *ih) RedrawWindow(ih->handle,NULL,NULL,RDW_ERASE|RDW_INVALIDATE|RDW_INTERNALPAINT|RDW_UPDATENOW); } +void iupdrvRedrawNow(Ihandle *ih, int value) +{ + SendMessage(ih->handle, WM_SETREDRAW, value ? TRUE : FALSE, 0); +} + void iupdrvPostRedraw(Ihandle *ih) { /* Post a REDRAW */ -- cgit v1.2.3