Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: <noreply@so...> - 2002-12-04 09:21:26
|
Bugs item #648282, was opened at 2002-12-04 09:21 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=648282&group_id=2435 Category: w32api Group: None Status: Open Resolution: None Priority: 5 Submitted By: Pat Thoyts (patthoyts) Assigned to: Earnie Boyd (earnie) Summary: Missing: AllowSetForegroundWindow Initial Comment: The newer Windows versions don't permit SetForegroundWindow to actually raise the window unless the current foreground process permits this. Instead you just get the desktop bar icon flashing at the user. From the MSDN documentation: "AllowSetForegroundWindow The AllowSetForegroundWindow function enables the specified process to set the foreground window using the SetForegroundWindow function. The calling process must already be able to set the foreground window. For more information, see Remarks later in this topic. BOOL AllowSetForegroundWindow( DWORD dwProcessId // process identifier ); " This also requires ASFW_ANY to be defined to -1 for the any-process ID (discovered experimentally) So, to summarise: WinUser.h requires: #if (WINVER >= 0x0500) #define ASFW_ANY ((DWORD)-1) BOOL WINAPI AllowSetForegroundWindow(DWORD); #endif ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=648282&group_id=2435 |