void Dragonfly::LoadPanel(int id) { Internals.PanelList[id].MakeYourBackground(); oapiRegisterPanelBackground(Internals.PanelList[id].hBitmap,Internals.PanelList[id].ATT_mode,0xFFFFFF); oapiSetPanelNeighbours(Internals.PanelList[id].neighbours[0],Internals.PanelList[id].neighbours[1],Internals.PanelList[id].neighbours[2],Internals.PanelList[id].neighbours[3]); Internals.PanelList[id].RegisterYourInstruments(); CurrentPANEL=id; }
bool PanelSDK::LoadPanel(int id) { if (id<NumPanels) { Current_Panel=id; oapiRegisterPanelBackground (panels[id]->MakeYourBackground(), PANEL_ATTACH_BOTTOM|PANEL_MOVEOUT_BOTTOM, (unsigned int)panels[id]->transparent_color); oapiSetPanelNeighbours (panels[id]->neighbours[0], panels[id]->neighbours[1], panels[id]->neighbours[2], panels[id]->neighbours[3]); panels[id]->RegisterYourInstruments(); return TRUE; } return FALSE; };