[gtkmm] disable clear on expose event



Thank you.

Can a window's background be turned off so that when
there's an expose 
event, the background is unchanged without being
cleared?

The below doesn't work here on windows xp:

Glib::RefPtr<Gdk::Window> window = get_window();
window->set_back_pixmap(0,false);

...: no matching function for call to
   `Gdk::Window::set_back_pixmap(int, bool)'
...: candidates are:
    void Gdk::Window::set_back_pixmap(const
    Glib::RefPtr<Gdk::Pixmap>&, bool)

Trying this compiles but causes a crash:

Glib::RefPtr<Gdk::Window> window = get_window();
const Glib::RefPtr<Gdk::Pixmap> *p=0 ;
window->set_back_pixmap(*p,false);







__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



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