On a test project I've tried doing something like...
Code: Select all
........
IGUIEnvironment* env = device->getGUIEnvironment();
env->loadGUI("LoginGUI.xml");
IGUIWindow* window = env->getRootGUIElement()->getElementFromId(1, false);
window->getCloseButton()->setVisible(false);
........
Code: Select all
error C2440: 'initializing' : cannot convert from 'irr::gui::IGUIElement *' to 'irr::gui::IGUIWindow *'