I want to know how to set the position of the window by using the function SetWindowPos(....).
I tried to use this by the following way.
void CCreate2View::OnSize(UINT nType, int cx, int cy)
CFormView::OnSize(nType, cx, cy);
I want the window can be placed at the position I specificd, not the position I placed the window before maximizing or minimzing it.
Further, I don't know how to check whether the window is maximizing, minimizing or restoring.....Can anyone teach me how to check it? I find that nType will be equal to SIZE_RESTORED whatever I am maximizing, minimizing or restoring thw window.