Amicalement Christophe
> Je voudrai enlever le son d'une message box (MB_ICONASTERISK) car
> j'aimerai utiliser mes propres son grace a un PlaySound. Existe t-il un
> tag ou une solution alternative ?
MessageBoxIndirect()
Pour MB_ICONASTERISK,
dwStyle = MB_USERICON | ... ;
hInstance = NULL;
lpszIcon = IDI_ASTERISK;
Voici un code exploitable :
/*MessageBox informative sans son*/
void msgbox_nfo(char * titre, char * messa)
{
MSGBOXPARAMS MsgParam;
MsgParam.cbSize = sizeof(MSGBOXPARAMS);
MsgParam.dwStyle = MB_USERICON|MB_OK;
MsgParam.hInstance = NULL;
MsgParam.hwndOwner = NULL;
MsgParam.lpszIcon = IDI_ASTERISK;
MsgParam.lpszCaption = titre;
MsgParam.lpszText = messa;
MessageBoxIndirect(&MsgParam);
}
Le Thu, 01 May 2008 17:19:40 +0200, Christian ASTOR
<cast...@club-internet.fr> a écrit: