add native_interface::set_parent
This commit is contained in:
@@ -1199,6 +1199,17 @@ namespace nana{
|
||||
return reinterpret_cast<native_window_type>(::GetWindow(reinterpret_cast<HWND>(wd), GW_OWNER));
|
||||
#elif defined(NANA_X11)
|
||||
return restrict::spec.get_owner(wd);
|
||||
#endif
|
||||
}
|
||||
|
||||
native_window_type native_interface::set_parent(native_window_type child, native_window_type new_parent)
|
||||
{
|
||||
#ifdef NANA_WINDOWS
|
||||
return reinterpret_cast<native_window_type>(
|
||||
::SetParent(reinterpret_cast<HWND>(child), reinterpret_cast<HWND>(new_parent))
|
||||
);
|
||||
#elif defined(NANA_X11)
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user