Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Sub-Menu creating a thread Collapse All
Subject Author Date
Offer Har Jun 13, 2006 - 5:33 AM

Hi,

I have noticed that each time that a sub-menu is opened (even of the menu bar - a top level menu), a thread is created and exits.
Why is this? how can I remove this?

I had some weird hang-ups when opening menus in my application, which is heavily multi-threaded, and i think it has to do with this thread.

Thanks.

Technical Support Jun 13, 2006 - 10:42 AM

We have just posted a FAQ How to customize or disable sounds used in pop-up menus?, which covers what you are looking for.

Offer Har Jun 13, 2006 - 11:12 AM

Use the SND_ASYNC flag, for example:

    PlaySound("MailBeep", NULL, SND_ALIAS|SND_ASYNC);

This should remove the need to create a thread.

Technical Support Jun 13, 2006 - 12:27 PM

There reason for using threads was that there is some delay before the sound actually starts playing. So using threads is justified.