James Smith
2014-05-10 11:15:16 UTC
Hi all,
Assume win is a wxWindow. When will
::gtk_widget_get_window(win->GetHandle()) start to return a non-NULL?
The function gtk_widget_get_window is to return a pointer to GdkWindow,
from which the X window ID (XID) can be obtained. The problem is that: in
the override of wxApp::OnInit, gtk_widget_get_window returns NULL. In fact,
after a wxWindow object has been created, it seems that the object won't
have a valid GdkWindow behind for a while. So, when is the correct timing
to get the XID from a wxWindow?
Thanks in advance for any hint.
Assume win is a wxWindow. When will
::gtk_widget_get_window(win->GetHandle()) start to return a non-NULL?
The function gtk_widget_get_window is to return a pointer to GdkWindow,
from which the X window ID (XID) can be obtained. The problem is that: in
the override of wxApp::OnInit, gtk_widget_get_window returns NULL. In fact,
after a wxWindow object has been created, it seems that the object won't
have a valid GdkWindow behind for a while. So, when is the correct timing
to get the XID from a wxWindow?
Thanks in advance for any hint.
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.
To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users