发布于 2004-03-29 15:37:17
0楼
#include "apdefap.h"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
#pragma code ("Kernel32.dll")
BOOL Beep( DWORD dwFreq, DWORD dwDuration); //dwFreq defines the frequency of the beep in hertz
//dwDuration specifies the duration of the beep in milliseconds
#pragma code()
Beep(1000,100); //Example: frequency 1000 hertz, 100 milliseconds
}
做人要厚道