Hi, all.

Is it intended behaviour that "modal" windows have not button "close" under 
Win32 (Windows7 at the moment)? Every time I add the WS_SYSMENU style to such 
windows to give possibility to close them by ordinary way.

If not, root of the problem lays in Fl_Win32.cxx:1494

    if (by+bt) {
      if (!w->modal()) style |= WS_SYSMENU | WS_MINIMIZEBOX;


I'd write instead:

    if (by+bt) {
      style |= WS_SYSMENU;
      if (!w->modal()) style |= WS_MINIMIZEBOX;

_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to