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

Method addBottomComponent

pluginManager/src/pluginmanagerdialog.cpp:422–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

420}
421
422void PluginManagerDialog::addBottomComponent(HWND hWnd, WINDOWINFO& wiDlg, UINT id) {
423
424 POSITIONINFO *positionInfo;
425 // Logo
426 positionInfo = new POSITIONINFO();
427 positionInfo->handle = ::GetDlgItem(hWnd, id);
428 WINDOWINFO wiCtl;
429 wiDlg.cbSize = sizeof(WINDOWINFO);
430 ::GetWindowInfo(positionInfo->handle, &wiCtl);
431 positionInfo->height = wiCtl.rcClient.bottom - wiCtl.rcClient.top;
432 positionInfo->width = wiCtl.rcClient.right - wiCtl.rcClient.left;
433 positionInfo->bottomOffset = wiDlg.rcClient.bottom - wiCtl.rcClient.top;
434 positionInfo->leftOffset = wiCtl.rcClient.left - wiDlg.rcClient.left;
435 _bottomComponents.push_back(std::shared_ptr<POSITIONINFO>(positionInfo));
436}
437
438INT_PTR CALLBACK PluginManagerDialog::run_dlgProc(UINT Message, WPARAM wParam, LPARAM lParam)
439{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected