- if (pSwp[i].hwnd == m_hFrame)
- memcpy(m_vSwp, pSwp[i], sizeof(SWP));
- else if (pSwp[i].hwnd == m_hVScroll)
- memcpy(m_vSwpVScroll, pSwp[i], sizeof(SWP));
- else if (pSwp[i].hwnd == m_hHScroll)
- memcpy(m_vSwpVScroll, pSwp[i], sizeof(SWP));
- else if (pSwp[i].hwnd == m_hTitleBar)
- memcpy(m_vSwpTitleBar, pSwp[i], sizeof(SWP));
+ if (vSwp[i].hwnd == m_hFrame)
+ memcpy(&m_vSwp, &vSwp[i], sizeof(SWP));
+ else if (vSwp[i].hwnd == m_hVScroll)
+ memcpy(&m_vSwpVScroll, &vSwp[i], sizeof(SWP));
+ else if (vSwp[i].hwnd == m_hHScroll)
+ memcpy(&m_vSwpVScroll, &vSwp[i], sizeof(SWP));
+ else if (vSwp[i].hwnd == m_hTitleBar)
+ memcpy(&m_vSwpTitleBar, &vSwp[i], sizeof(SWP));