Removing the title bar

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am developing an SDI application, based CFormView. I would like to
prevent the user from moving the window around.

How do I do that?

Eitan
 
I am developing an SDI application, based CFormView. I would like to
prevent the user from moving the window around.

How do I do that?

You could do it by adding the following code to the end of your
CMainFrame::OnCreate method:

CMenu * pM = GetSystemMenu( false );
pM->ModifyMenu( SC_MOVE, MF_BYCOMMAND | MF_GRAYED );

Dave
 
Back
Top