Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HOWTO: Disable moving of dialogs..

115 views
Skip to first unread message

Ajay Kalra

unread,
Jan 26, 1999, 3:00:00 AM1/26/99
to
Do the following in your dialog's OnInitDialog():

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
>
>
>

Rahul Thatte

unread,
Jan 27, 1999, 3:00:00 AM1/27/99
to

Rahul Thatte

unread,
Jan 27, 1999, 3:00:00 AM1/27/99
to
Thanx Ajay,

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...

Lyor Goldstein

unread,
Jan 27, 1999, 3:00:00 AM1/27/99
to
On Wed, 27 Jan 1999 12:01:25 +0530, "Rahul Thatte" <cra...@ruksun.com>
wrote:

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

ShellShock

unread,
Jan 27, 1999, 3:00:00 AM1/27/99
to
Rahul Thatte wrote in message ...

>
>Hi,
> How do i disable moving of dialogs in MFC.


Override CWnd::OnWindowPosChanging().


0 new messages