RECT aRect::getGlobalGUI_RECT() { RECT rect; rect.left = globalLeft(); rect.right = globalRight(); rect.top = globalTop(); rect.bottom = globalBottom(); return rect; }
void aDropList::render() { if ( showWindow ) { for ( int i = 0; i < pNumberOfChildren; i++ ) { pChildren[i]->render(); } if (0 <= selectionIndex) { aListItem *pListItem = ListBox().GetItem(selectionIndex); if ( pListItem ) { float l, t, w, h; l = pListItem->globalLeft(); t = pListItem->globalTop(); w = pListItem->width(); h = pListItem->height(); float availableWidth = (expandButton.globalLeft() - 1) - (globalLeft() + 1); if ((0 < availableWidth) && (w > availableWidth)) { pListItem->resize(availableWidth, h); } bool bShowing = pListItem->isShowing(); pListItem->moveTo( globalX() + textLeft, globalY() + textTop ); pListItem->showGUIWindow( true ); pListItem->render(); pListItem->moveTo(l, t); pListItem->showGUIWindow( bShowing ); if ((0 < availableWidth) && (w > availableWidth)) { pListItem->resize(w, h); } } } } }