Re: Windows Registry Hack
[email]email@example.com[/email] (Roger Johnston) wrote in message news:<firstname.lastname@example.org>...[color=blue]
> Our company uses a scheduling/calendering program called "OnTime" from
> OpenText. If someone sets an appointment with an alarm, it will open
> a notify window sometime before the appointment or scheduled item
> (user defined). The problem is that when this window opens, it does
> not open ON TOP of any open apps. The has caused VIP's to miss or
> almost miss important meetings, etc. Is there any registry hack to
> tell this application to open its notify window ON TOP of any open
> apps? I talked with OpenText tech support and they say they have
> received calls asking for this option, but they have no plans to
> introduce this in future editions.[/color]
No idea about the registry.
You could try to get some more information about the alarm window
Spy++. Then you could write your own program (say with an invisible
window), which has a timer (say every 5 seconds) that tries to find
alarm window (EnumWindows/EnumChildWindows). If such an alarm window
found, the you can try to bring it to top
Did not do it myself, it's just an idea.
Here is a piece of code where I do something similar: App1 launches
When App1 is closed it tries to close App2 as well.
if (WaitForSingleObject(m_hChildProcess, 0) == WAIT_TIMEOUT)
// child process handle is still valid, i.e. child process has
// been created and has not been closed yet
// CloseChildProcess() posts WM_CLOSE to all top-level windows whose
PID matches m_dwChildProcessId.
// Here you should use a string as lParam, see comment below.
// and of course _YOU_ should not do it in ExitInstance ;-)
BOOL CALLBACK CTest1App::CloseChildProcess(HWND hWnd, LPARAM lParam)
// Here you should use lParam in another sense
// You could use lParam for a caption, then
// get the caption of hwnd and compare both strings.
if (dwID == (DWORD)lParam)
// Here you should try to bring it to top instead
PostMessage(hWnd, WM_CLOSE, 0, 0);