显示、隐藏窗口

想请教一下,想在QNX界面程序中随某个按钮按下,显示一个窗口或者关闭一个窗口,请问应该调用哪个函数,怎样实现?多谢!

ApModuleParent( ABM_new_window, AB_PARENT, ABW_base );
ApCreateModule( ABM_new_window, NULL, NULL );

Oh, it is useful to have knowledge and have really good material.