Click to See Complete Forum and Search --> : Windows Messages


-=[SKULK]=-
October 12th, 1999, 07:17 PM
Hi WM_ Gurus,
I have the following problem:
I need to know which message(s) is sent, when a user moves the Window. If I check WM_MOVE in PreTranslateMessage(...) like that:

if (pMsg->message == WM_MOVE)



and Iīm moving the window I donīt get that message ??? So how ist the message called when a user moves the window ?
Or better: I dont want that the user is able to move the Window how can I prevent that ?

Any suggestions or hints are welcome...

Thanks for help in advance


-=[SKULK]=-

Henk
October 13th, 1999, 06:40 AM
Check the online help for the CWnd::OnSysCommand message handler. If you implement this function in you're CWnd derived class you be able to prevent the user from moving the window.

Henk