Question about WM_xxx Messages
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Question about WM_xxx Messages

  1. #1
    Join Date
    Apr 2004
    Posts
    62

    Question Question about WM_xxx Messages

    Hi,

    is there a certain range where I can define my WM_xxx messages without causing any problems to windows messagehandlers ?

    How about > 1000000 ?

  2. #2
    Join Date
    Aug 1999
    Location
    Germany
    Posts
    2,338

  3. #3
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652
    Originally posted by martho
    Have a look at WM_USER+x:
    Just a small remark...in general you can use both 'WM_USER' or 'WM_APP' for user-defined messages. However, you should rather use 'WM_APP' as a base for your user-defined messages since it provides less problems. Windows itself uses the range 'WM_USER + x' for several messages therefore you can run into conflict problems pretty easy...
    Ciao, Andreas

    "Software is like sex, it's better when it's free." - Linus Torvalds


    Article(s): Allocators (STL) Function Objects (STL)

  4. #4
    Join Date
    Aug 1999
    Location
    Germany
    Posts
    2,338
    Thanx for the additional info!

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center