xegallo
12-10-2002, 21:08
che errore c'è
HWND getSystemTrayHwnd ()
{
HWND hwndTray;
//310
HWND hwndStartMenu = FindWindow ("ShellTrayWnd",NULL);
HWND hwndChild = GetWindow (hwndStartMenu,GW_CHILD);
int iClassName = 0;
char szClass [255];
do
{
iClassName= GetClassName (hwndChild,szClass,sizeof(szClass));
//320
if (strstr(szClass,"TrayNotifyWnD"))
{
hwndTray = hwndChild;
break;
}
else
{
hwndChild = GetWindow (hwndChild,GW_HWNDNEXT);
}while (true);
//330
}
return hwndTray;
}
mi da errore su return:
error C2059: syntax error : 'return'
HWND getSystemTrayHwnd ()
{
HWND hwndTray;
//310
HWND hwndStartMenu = FindWindow ("ShellTrayWnd",NULL);
HWND hwndChild = GetWindow (hwndStartMenu,GW_CHILD);
int iClassName = 0;
char szClass [255];
do
{
iClassName= GetClassName (hwndChild,szClass,sizeof(szClass));
//320
if (strstr(szClass,"TrayNotifyWnD"))
{
hwndTray = hwndChild;
break;
}
else
{
hwndChild = GetWindow (hwndChild,GW_HWNDNEXT);
}while (true);
//330
}
return hwndTray;
}
mi da errore su return:
error C2059: syntax error : 'return'