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

    Start Menu Displayed?

    I'm making WinAPI programs in C++, and for this one, I have have to send a beep everytime the start menu is displayed (NOT the start menu being clicked). I figured I would use the beep(3500,500) function, but I still need to know how I can tell if the start menu is displayed. Here is what I have thought as an outline.

    if(*start menu is displayed*)
    {
    beep(3500,500);
    }


    Any advice on this? I tried to search for this in MSDN, but no luck.

  2. #2
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Start Menu Displayed?

    There is NO event for detecting this, so you would have to poll...At this point it becomes a simple "Window detector", and there are lots of samples on that....

    But I am very curious.... WHO ever came up with this "requirement"????
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  3. #3
    Join Date
    Jan 2008
    Posts
    48

    Re: Start Menu Displayed?

    Of course there are several events generated by the system for Start Menu !
    You can ask on Adv. Win32 api newsgroup :
    news://194.177.96.26/comp.os.ms-wind...ogrammer.win32
    where it 's a classic question...

  4. #4
    Join Date
    Oct 2008
    Posts
    68

    Re: Start Menu Displayed?

    Quote Originally Posted by Laurentis View Post
    Of course there are several events generated by the system for Start Menu !
    You can ask on Adv. Win32 api newsgroup :
    news://194.177.96.26/comp.os.ms-wind...ogrammer.win32
    where it 's a classic question...
    Ok, I can read the topics, but I can't make a new one, my news reader says "No sender specified; check account settings." How can I register for this to make a new topic?

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