Check the online help for the CWnd::OnSysCommand message handler. If you implement this function in you're CWnd derived class you be able to prevent the user from moving the window.

Henk