On windows this would create a window with a disabled close button (it
would still have minimize though).

#include <FL/Fl_Window.H>
#include <FL/Fl.H>
#include <FL/x.H>
#include <windows.h>

int main(int argc, char** argv) {
  Fl_Window w(200,400);
  w.show(argc, argv);
  HWND hw = fl_xid(&w);
  SetClassLong(hw,GCL_STYLE,GetClassLong(hw,GCL_STYLE)|CS_NOCLOSE);
  SendMessage(hw,WM_NCPAINT,0,0); //redraw window and border
  return Fl::run();
}

I'm sure there's something vaguely similar for X

On Mon, Nov 16, 2009 at 5:05 PM, Harvey Chapman <[email protected]> wrote:
>
> On Nov 16, 2009, at 4:35 PM, imacarthur wrote:
>
>> Note that it is straightforward to make a window with no titlebar or
>> decorations draggable - I think Greg even has worked examples of that
>> on his fltk cheats page...
>
> Cool, now I know where to look. I owe him some code, too.
>
> Harvey
>
> _______________________________________________
> fltk mailing list
> [email protected]
> http://lists.easysw.com/mailman/listinfo/fltk
>



-- 
Marcel Dejean, IT Assistant
Northern Manhattan Improvement Corp
76 Wadsworth Ave, New York, NY 10033
Tel: 212-822-8300   Fax: 212-740-9646

Our mission is to serve as a catalyst for positive change in the lives of the
people in our community on their paths to secure and prosperous futures.

_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to