Subversion Repositories Games.Chess Giants

Rev

Rev 161 | Rev 177 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 161 Rev 171
Line 211... Line 211...
211
{
211
{
212
   // this function makes a window blink to the foreground for one second, playing a "ding" sound
212
   // this function makes a window blink to the foreground for one second, playing a "ding" sound
213
 
213
 
214
   FLASHWINFO fw;
214
   FLASHWINFO fw;
215
 
215
 
216
   PlaySound (L"SystemDefault", NULL, SND_ALIAS | SND_ASYNC); // play a beep
216
   Audio_PlaySound (SOUNDTYPE_HINTWINDOW, 0.0f, 0.0f, 0.04f); // play a beep at the center of the board
217
   SetForegroundWindow (hWnd); // modal dialog windows have priority over all others
217
   SetForegroundWindow (hWnd); // modal dialog windows have priority over all others
218
 
218
 
219
   fw.cbSize = sizeof (fw);
219
   fw.cbSize = sizeof (fw);
220
   fw.hwnd = hWnd;
220
   fw.hwnd = hWnd;
221
   fw.dwFlags = FLASHW_CAPTION;
221
   fw.dwFlags = FLASHW_CAPTION;
Line 537... Line 537...
537
{
537
{
538
   // helper function to quickly convert an ASCII string to wide char
538
   // helper function to quickly convert an ASCII string to wide char
539
 
539
 
540
   size_t converted_count;
540
   size_t converted_count;
541
 
541
 
542
   // do the conversion
542
   // do the conversion (WARNING: EXTREMELY COSTY FUNCTION!)
543
   mbstowcs_s (&converted_count, dest, dest_size_in_wchars, source, _TRUNCATE);
543
   mbstowcs_s (&converted_count, dest, dest_size_in_wchars, source, _TRUNCATE);
544
   return;
544
   return;
545
}
545
}
546
 
546
 
547
 
547