home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / evbl0627.zip / everblue_20010627.zip / x11 / Xlib_BorderWidth.c < prev    next >
C/C++ Source or Header  |  1999-11-02  |  442b  |  21 lines

  1. #include "Xlib_private.h"
  2.  
  3. XSetWindowBorderWidth(dpy, w, width)
  4. Display *dpy;
  5. Window w;
  6. unsigned int width;
  7. {
  8.    DBUG_ENTER("XSetWindowBorderWidth")
  9.    HWND winframe = WinQueryWindowULong((HWND)w, QWP_FRAMEHWND);
  10.  
  11.    if (!winframe)
  12.       DBUG_RETURN(False);
  13.  
  14.    if ( !WinSendMsg( winframe, WM_SETBORDERSIZE,
  15.                      MPFROMLONG(width), MPFROMLONG(width) ) )
  16.       DBUG_RETURN(False);
  17.  
  18.    DBUG_RETURN(True);
  19. }
  20.  
  21.