Hi Support,
Yes I have changed the code. On camera button click I get fscommand to toggle. I do following:
Code: Select all
if(argList.CompareNoCase(_T("false"))==0){
LONG nOldStyle = ::GetWindowLong(hwndFlashPlayerControl, GWL_STYLE);
LONG nNewStyle = nOldStyle & ~WS_EX_LAYERED;
::SetWindowLong(hwndFlashPlayerControl, GWL_STYLE , nNewStyle);
::SetWindowPos(hwndFlashPlayerControl,NULL, 0, 0, 0, 0, SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_FRAMECHANGED);
}
else {
LONG nOldStyle = ::GetWindowLong(hwndFlashPlayerControl, GWL_STYLE);
LONG nNewStyle = nOldStyle & WS_EX_LAYERED;
::SetWindowLong(hwndFlashPlayerControl, GWL_EXSTYLE, nNewStyle);
SetWindowPos(hwndFlashPlayerControl,NULL, 0, 0, 0, 0, SWP_NOZORDER|SWP_NOMOVE|SWP_NOSIZE|SWP_NOACTIVATE|SWP_FRAMECHANGED);
}
Though now I get the WS_EX_LAYERED style removed and window is visible, I am still not able to click the "Allow Deny Button".
My guess is that there has to be a time lag between the command to change style and camera activation.
Will that help?
Thanks
Bikram...