| 625 | } |
| 626 | |
| 627 | HDWP 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 | //============================================================================= |
no outgoing calls
no test coverage detected