summaryrefslogtreecommitdiff
path: root/iup/src/win/iupwin_common.c
diff options
context:
space:
mode:
authorNicolas Noble <pixel@nobis-crew.org>2010-09-09 10:47:04 -0700
committerNicolas Noble <pixel@nobis-crew.org>2010-09-09 10:47:04 -0700
commitbe46128d75ff8f2739b856dcc4ec41bebb90a666 (patch)
tree6f8ac0c4aead39bbbc38beaec5a1c403059f9047 /iup/src/win/iupwin_common.c
parent53d6ee570041c7e47c02dd8b4ca753a3b020369f (diff)
Adding the SetRedraw() directive - only for Windows.
Diffstat (limited to 'iup/src/win/iupwin_common.c')
-rwxr-xr-xiup/src/win/iupwin_common.c5
1 files changed, 5 insertions, 0 deletions
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 */