CMenu* pSysMenu = GetSystemMenu(FALSE);
if(pSysMenu)
pSysMenu->DeleteMenu(SC_MOVE, MF_BYCOMMAND);
Ajay
Rahul Thatte wrote in message ...
>
>Hi,
> How do i disable moving of dialogs in MFC.
> The handler OnMove() coomes after the dialog
> has been moved to the new location.
> This causes a flickering effect.
>
> No dialog properties please...
>
>
>-CRahul
>
>
>
But SC_MOVE is not supported under Windows CE..
Isn't there any pre-move notification message ??
Ajay Kalra <ajay...@yahoo.com> wrote in message
OuutiocS#GA....@uppssnewspub04.moswest.msn.net...
Try overriding the "OnSysCommand" (for dialog apps) :
void CDlg::OnSysCommand (..., int nID)
{
if (SC_MOVE == nID)
return;
...
...
}
Lyor Goldstein
CTI2 (CTI Square)
Technologies Group Leader
ly...@cti2.com
http://www.cti2.com
Override CWnd::OnWindowPosChanging().