add native_interface::set_parent

This commit is contained in:
Jinhao
2015-12-18 00:57:46 +08:00
parent 54ca38d575
commit 25743b14a9
2 changed files with 12 additions and 0 deletions

View File

@@ -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
}