Try to use rhPtr->rhHEditWin, it returns the handle of the runtime window.
Printable View
Try to use rhPtr->rhHEditWin, it returns the handle of the runtime window.
My extension retrieves the Main Window Handle.Quote:
Originally Posted by Jamie
I'll try that.Quote:
Originally Posted by Looki
Both the Main Handle (rhPtr->rhHMainWin) and the Runtime Handle (rhPtr->rhHEditWin) do not make the window flash.
How exactly are you using them?
I don't understand what you mean. What code am I using to retrieve them, or how do I enter them? Or do you mean something else entirely?
Paste the source code of your action.
I have also tried the code I pasted on the previous page and had the same results.Code:ACTION(
/* ID */ 0,
/* Name */ "Flash Window %0 (Number of Times: %1, Flash Rate: %2)",
/* Flags */ 0,
/* Params */ (5,PARAM_NUMBER,"Handle",PARAM_NUMBER,"Number of Times to Flash",PARAM_NUMBER,"Flash Rate (In Milliseconds)(0=Cursor Blink Rate)",PARAM_NUMBER,"Flash Window Caption (0=False, 1=True)",PARAM_NUMBER,"Flash Taskbar Button (0=False, 1=True)")
) {
int hn=Param(TYPE_INT);
int fln=Param(TYPE_INT);
int flr=Param(TYPE_INT);
int ca=Param(TYPE_INT);
int tb=Param(TYPE_INT);
FLASHWINFO fl;
fl.cbSize = sizeof(fl);
fl.hwnd = (HWND)hn;
fl.uCount = fln;
fl.dwTimeout = flr;
if(ca) fl.dwFlags |= FLASHW_CAPTION;
if(tb) fl.dwFlags |= FLASHW_TRAY;
FlashWindowEx(&fl);
}
And what are you passing as the handle value? I don't see any mention of rhPtr->rhHEditWin..
My extension has two expressions. One retrieves the Main Handle using:
LPRH rhPtr = rdPtr->rHo.hoAdRunHeader;
HWND MainHwnd = rhPtr->rhHMainWin;
One retrieves the Runtime Handle (Or whatever it's called) using:
LPRH rhPtr = rdPtr->rHo.hoAdRunHeader;
HWND RunHwnd = rhPtr->rhHEditWin;