> 
> Without actually trying it, it looks like maybe something like this
> could work:
> 
>       HWND hw = fl_xid(my_window);
>       SetWindowPos(hw, HWND_TOPMOST, 0, 0, 0, 0, (SWP_NOMOVE |
> SWP_NOSIZE | SWP_SHOWWINDOW));

Yes, that works: here's a fluid demo.

-----------------
# data file for the Fltk User Interface Designer (fluid)
version 1.0110 
header_name {.h} 
code_name {.cxx}
decl {\#include <Fl/x.h>} {} 

Function {} {open
} {
  Fl_Window main_win {open selected
    xywh {537 337 558 249} type Double visible
  } {
    Fl_Button bt1 {
      label Topmost
      callback {HWND hw = fl_xid(main_win);

SetWindowPos(hw, HWND_TOPMOST, 0, 0, 0, 0, (SWP_NOMOVE | SWP_NOSIZE |
SWP_SHOWWINDOW));}
      xywh {45 80 85 35}
    }
    Fl_Button bt2 {
      label {Not Topmost}
      callback {HWND hw = fl_xid(main_win);

SetWindowPos(hw, HWND_NOTOPMOST, 0, 0, 0, 0, (SWP_NOMOVE | SWP_NOSIZE |
SWP_SHOWWINDOW));}
      xywh {230 80 85 35}
    }
  }
} 
-----------------




SELEX Sensors and Airborne Systems Limited
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to