Mercurial > dwindows
diff dwtest.c @ 284:3431e445d831
Woops, screwed up the splitbar tab direction on Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 17 Mar 2003 15:38:57 +0000 |
parents | bf8b907f8a29 |
children | 0e6f09149eaa |
line wrap: on
line diff
--- a/dwtest.c Mon Mar 17 15:33:51 2003 +0000 +++ b/dwtest.c Mon Mar 17 15:38:57 2003 +0000 @@ -135,7 +135,13 @@ int DWSIGNAL keypress_callback(HWND window, char ch, int vk, int state, void *data) { - fprintf(stderr,"got keypress %c %d %d\n", ch, vk, state); + FILE *fp = fopen("log", "a+"); + + if(fp) + { + fprintf(fp,"got keypress %c %d %d\n", ch, vk, state); + fclose(fp); + } return 0; }