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

Method tabWndProc

pluginManager/src/pluginmanagerdialog.cpp:379–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

377
378
379INT_PTR CALLBACK PluginManagerDialog::tabWndProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam)
380{
381 switch (Message)
382 {
383 case WM_INITDIALOG :
384 {
385
386 return TRUE;
387 }
388
389 case WM_SIZE:
390 {
391
392 DLGHDR *dlgHdr = reinterpret_cast<DLGHDR*>(::GetWindowLongPtr(hWnd, GWLP_USERDATA));
393
394
395 dlgHdr->rcDisplay.left = 0;
396 dlgHdr->rcDisplay.right = LOWORD(lParam);
397 dlgHdr->rcDisplay.top = 0;
398 dlgHdr->rcDisplay.bottom = HIWORD(lParam);
399
400 TabCtrl_AdjustRect(hWnd, FALSE, &dlgHdr->rcDisplay);
401
402 ::SetWindowPos(dlgHdr->hwndDisplay, HWND_TOP, dlgHdr->rcDisplay.left, dlgHdr->rcDisplay.top,
403 dlgHdr->rcDisplay.right - dlgHdr->rcDisplay.left,
404 dlgHdr->rcDisplay.bottom - dlgHdr->rcDisplay.top, SWP_NOZORDER);
405
406 //::SetWindowPos(hWnd, HWND_TOP, 0, 0, HIWORD(lParam), LOWORD(lParam), SWP_NOMOVE | SWP_NOZORDER);
407 return TRUE;
408
409 }
410
411 default:
412 DLGHDR *dlgHdr = reinterpret_cast<DLGHDR*>(::GetWindowLongPtr(hWnd, GWLP_USERDATA));
413 if (dlgHdr->defWndProc)
414 return ::CallWindowProc(dlgHdr->defWndProc, hWnd, Message, wParam, lParam);
415 else
416 return ::DefWindowProc(hWnd, Message, wParam, lParam);
417 break;
418 }
419
420}
421
422void PluginManagerDialog::addBottomComponent(HWND hWnd, WINDOWINFO& wiDlg, UINT id) {
423

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected