CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 1999
    Location
    nop
    Posts
    22

    Windows Messages

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

  2. #2
    Join Date
    Jun 1999
    Location
    Netherlands
    Posts
    12

    Re: Windows Messages

    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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured