Albrecht Schlosser wrote:
> Greg (or Matt, since you have VC 2008 Express installed now),
> could one of you please test if it works with
>
> if (!(w->flags() & Fl_Window::FORCE_POSITION)) {
>
> in Fl_win32.cxx, line 1477 (s/Fl_Widget::/Fl_Window::/) ?
There are two instaces of FORCE_POSITION in FL_win32.cxx:
% grep FORCE_POSITION Fl_win32.cxx
set_flag(FORCE_POSITION); <-- THIS ONE FAILS
if (!(w->flags() & Fl_Widget::FORCE_POSITION)) { <-- THIS ONE WORKS
..so I think the Right Thing (TM) to do is to change the
first one to have Fl_Widget:: (instead of Fl_Window::)
just to be consistent.
> Last question: if it works, what would be the solution
> for the problem?
It appears that just the above change might be all that's needed;
I backed out my changes to make Fl_Widget::[flags] enum public,
and it still built OK.
I'm not going to try to second guess the intentions of what's in .H,
and would just assume the above change is needed simply due to
an omission of the "Fl_Widget::" prefix on that first FORCE_POSITION
instance in Fl_win32.cxx, the assumption being that somehow VS Express
2008
is being more pedantic than the other compilers, which is why it never
came up.
If this looks OK, I can check it in.
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev