Réponse acceptée !
Bon apres de multiple recherche et une bonne aide sur les newsgroups, voici ce que j'ai réussi a faire (et sa marche) :
/*MessageBox informative sans son*/
void msgbox_nfo(char * titre, char * messa)
{
// Mettre un playsong ici pour jouer un son perso
MSGBOXPARAMS MsgParam;
MsgParam.cbSize = sizeof(MSGBOXPARAMS);
MsgParam.dwStyle = MB_USERICON|MB_OK; // Indiquer les bouton présent et MB_USERICON pour utiliser une icone perso
MsgParam.hInstance = NULL;
MsgParam.hwndOwner = NULL;
MsgParam.lpszIcon = IDI_ASTERISK; // Avec un MAKEINTRESOURCE vous pouvez mettre une image perso
MsgParam.lpszCaption = titre; // titre du message
MsgParam.lpszText = messa; // message ...
MessageBoxIndirect(&MsgParam);
}
Voila, merci pour tout et a la prochaine ^^
|