Someone recently asked in the MSDN forums how to create an unmovable dialog using MFC. The simplest way to do this is to remove SC_MOVE from the dialog’s system menu. This can be easily done in OnInitDialog :- CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != NULL) { pSysMenu->RemoveMenu(SC_MOVE, MF_BYCOMMAND); } Obviously, you need to think [...]
Entries from September 2007
Creating an unmovable dialog
September 4th, 2007 · 4 Comments
Tags: Win32/MFC