[gtkmm] simple window size question



I want to get the size of a maximised window.  I do something like:

C_Mywindow mc_mywindow;     (inherits Gtk::Window)
mc_mywindow.move(0, 0);
mc_mywindow.maximize();
int w, h;
mc_mywindow.get_size(w, h);
(or w=mc_mywindow.get_width(); etc)

but the size I get back is not it's maximised size.

if i put in a
mc_mywindow.set_size_request(400, 400);
before the maximize, i actually get back a size of 620x620.

what have i missed?



bevis





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]