/* $Id: tixWCmpt.c,v 1.1.1.1 2000/05/17 11:08:55 idiscovery Exp $ */ /* * tixWCmpt.c -- * * Windows compatibility module: implements missing functions in Windows. */ #include #include "tixPort.h" #include "tixInt.h" #ifndef strcasecmp int strcasecmp(char * a, char *b) { while (1) { if (*a== 0 && *b==0) { return 0; } if (*a==0) { return (1); } if (*b==0) { return (-1); } if (tolower(*a)>tolower(*b)) { return (-1); } if (tolower(*b)>tolower(*a)) { return (1); } a++; b++; } } #endif /* *---------------------------------------------------------------------- * * XLowerWindow -- * * Change the stacking order of a window. * * Results: * None. * * Side effects: * Changes the stacking order of the specified window. * *---------------------------------------------------------------------- */ void XLowerWindow(display, w) Display* display; Window w; { HWND window = TkWinGetHWND(w); display->request++; SetWindowPos(window, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE); } #if 1 void XDrawPoints(display, d, gc, points, npoints, mode) Display* display; Drawable d; GC gc; XPoint* points; int npoints; int mode; { int i; for (i=0; i