CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    14

    MessageBeep sound type?

    Hi,
    How can i find IDs of System sounds to pass ID to MessageBeep(ID) function.The documentation says these are defind in [sounds] section of registry,I can't find. I want to pass ID of "ringin.wav" or any other sound other than default sound.

    Thanx.

    sajid.


  2. #2
    Join Date
    May 1999
    Location
    Toulouse, France
    Posts
    171

    Re: MessageBeep sound type?

    Following the documentation:

    BOOL MessageBeep( UINT uType // sound type);

    Parameters
    uType

    Specifies the sound type, as identified by an entry in the [sounds] section of the registry. This parameter can be one of the following values:
    Value Sound

    0xFFFFFFFF Standard beep using the computer speaker
    MB_ICONASTERISK SystemAsterisk
    MB_ICONEXCLAMATION SystemExclamation
    MB_ICONHAND SystemHand
    MB_ICONQUESTION SystemQuestion
    MB_OK SystemDefault

    So, you don't precise the wav file you want to play, but the type of sound. the association type / file is a system "property".

    HTH.

    K.


    Ash to ash and clay to clay, if the enemy doesn't get you, your own folk may.
    We're talking ****, 'cause life is a 'biz
    You know it is
    Everybody tryin' to get rich
    God ****!
    All I wanna do is live !

    KoRn, Children of the Korn

  3. #3
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: MessageBeep sound type?

    and all the other system sounds?

    Sally


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