发布于 2006-09-22 10:06:43
0楼
#pragma code("user32.dll")
LONG SendMessage(
HWND hWnd, // handle of destination window
UINT Msg, // message to post
WPARAM wParam, // first message parameter
LPARAM lParam // second message parameter
);
#pragma code()
HWND Handle=NULL;
Handle=FindWindow(NULL,"Microsoft Excel - abc.xls");
if (Handle) SendMessage(Handle,WM_CLOSE,0,0);
无论成与败,无论甜与苦,我还是我。