MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / DeferCtlPos

Function DeferCtlPos

src/Helpers.c:627–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

625}
626
627HDWP DeferCtlPos ( HDWP hdwp, HWND hwndDlg, int nCtlId, int dx, int dy, UINT uFlags )
628{
629 RECT rc;
630 HWND hwndCtl = GetDlgItem ( hwndDlg, nCtlId );
631 GetWindowRect ( hwndCtl, &rc );
632 MapWindowPoints ( NULL, hwndDlg, ( LPPOINT ) &rc, 2 );
633 if ( uFlags & SWP_NOSIZE ) {
634 return ( DeferWindowPos ( hdwp, hwndCtl, NULL, rc.left + dx, rc.top + dy, 0, 0, SWP_NOZORDER | SWP_NOSIZE ) );
635 } else {
636 return ( DeferWindowPos ( hdwp, hwndCtl, NULL, 0, 0, rc.right - rc.left + dx, rc.bottom - rc.top + dy, SWP_NOZORDER | SWP_NOMOVE ) );
637 }
638}
639
640
641//=============================================================================

Callers 4

OpenWithDlgProcFunction · 0.85
FavoritesDlgProcFunction · 0.85
FileMRUDlgProcFunction · 0.85
SelectEncodingDlgProcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected