I used common dialog active x to get printer hamdle and getactivewindow , getforeground ( win32 functions) to get window handle to print rich text activex.
Unforturnatly, you ddid not mentioned, what handle do you need, I don't have the activex, you have mentioned and can not check out myself
Best wishes, Vladimir
MVP-2006-2011, PHD in Math and Physics ,
host of
www.foxclub.ru,
VFP lector at Interface and Microinform companies
Head science researcher of VNIIA Rosatom.