-- added set_property_byref and set_property_byref_typed services

-- added get_object_description service

-- added comPluginDemoScriptSAPI.powerpro demo script, 
   which uses both of above services

com.get_accessible_object is still in, but not documented and doesn;t work.

com.get_accessible_object(hwnd, ["dispatch" | "accessible", [ objectID]])

objectID defaults to OBJID_NATIVEOM if absent

["dispatch" | "accessible",] if absent defaults to "dispatch"

Works, in sense returns a ITextDocument. object if applied to dialog plugin 
richedit control.  get_object_description applied to it gets something 
reasonable.

But doesn't work, in sense can't actually invoke all methods.

E.g. if g_hwnd_re is handle to a dialog plugin richedit control,

 
  local hTom = com.get_accessible_object(g_hwnd_re,  "dispatch")
  hTom.BeginEditCollection either returns error or crashes PP

But

  hTom.Freeze() ;; works
  hTom.UnFreeze() ;; works

dialog plugin makes a "RichEdit20A" richedit control

I wonder if I use some higher version of richedit control class if
I get better reults.  Wordpad also uses a RichEdit20.  

There was a proble with BeginEditCollection reported in 2003 here:

http://groups.google.com/group/microsoft.public.win32.programmer.ole/browse_thread/thread/cf6c7d9f5c84bb52/969fe3a9f8d0dc3b?lnk=gst&q=ITextDocument+#969fe3a9f8d0dc3b

But what I'm getting probably not problem documented here:
BeginEditCollection doesn't return E_NOTIMPL, error returned by indicates 
recipient control threw some kind of exception



Reply via email to