How to check if a window is maximized? (Gdk::Window_State_Maximized from a Gtk::Window)
- From: <Lukas Orlowski dlr de>
- To: <gtkmm-list gnome org>
- Subject: How to check if a window is maximized? (Gdk::Window_State_Maximized from a Gtk::Window)
- Date: Mon, 14 Apr 2008 10:40:03 +0200
Good morning community
I've been googling myself senseless while trying to find a solution for
my problem.
I want to check if a Gtk::Window is maximized using Gtkmm.
The following does not work:
Gtk::Window* wMainWindow;
// snip...
Glib::RefPtr<Gdk::Window> pGDK = wMainWindow->get_frame();
if ( Gdk::WINDOW_STATE_MAXIMIZED == pGDK->get_state() )
cout << "true" << endl;
Neither does the following declaration:
Gdk::WINDOW_STATE wstate;
Any help is welcome.
Best regards Luke
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]