MCPcopy Create free account
hub / github.com/bruderstein/nppPluginManager / sizeWindow

Method sizeWindow

pluginManager/src/pluginmanagerdialog.cpp:643–660  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643void PluginManagerDialog::sizeWindow(int width, int height)
644{
645 // Size the tab control
646 ::MoveWindow(_tabHeader.hwndTab, _leftMargin, _topMargin, width - _leftMargin - _rightMargin, height - _tabBottomOffset, FALSE);
647
648 // Move the sponsor message
649 for(std::list<std::shared_ptr<POSITIONINFO>>::iterator it = _bottomComponents.begin(); it != _bottomComponents.end(); it++) {
650 ::MoveWindow((*it)->handle, (*it)->leftOffset, height - (*it)->bottomOffset, (*it)->width, (*it)->height, FALSE);
651 }
652
653 // Move the settings button, _closeButtonHeight is also the width between settings and close buttons
654 ::MoveWindow(_hSettingsButton, width - _closeButtonRightOffset - _closeButtonWidth - _closeButtonHeight, height - _closeButtonBottomOffset, _closeButtonWidth, _closeButtonHeight, FALSE);
655
656 // Move the close button, move last to have let it draw last and have it at the top, also on small dialog sizes
657 ::MoveWindow(_hCloseButton, width - _closeButtonRightOffset, height - _closeButtonBottomOffset, _closeButtonWidth, _closeButtonHeight, FALSE);
658
659 ::InvalidateRect(_hSelf, NULL, TRUE);
660}
661
662
663void PluginManagerDialog::sizeTab(TABPAGE tab, int width, int height)

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected