How to use HW accelleration in windowed mode

I’ve just got a GeForce2 MX and was wondering how to get HW accelleration in a MFC CWnd class. Software is working fine. Fullscreen HW also.

Thanks.