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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top