Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with HWND property on objects..

Status
Not open for further replies.

CFPR

MIS
May 9, 2003
58
0
0
PR
I am using a third party .dll library (spanish spell checker) that requires a 'link' between the activex spelling control and a VFP control - in this case VFP EditBox. The problems is that VFP only provides a HWND (Windows Handle #) for Forms and Toolbars and not for the others foundation classes.

Is there a way to create or provide a HWND for and editbox, text box, or Rich-text box...

Thanks..
CF

 
CFPR,

As for the VFP textbox and editbox, they don't have an HWND. They're really just images being painted and not a window like you will find in other languages. This is a hold over from the days when VFP supported multiple platforms.

If you are using activex controls, such as MS Rich Textbox Control, then you should be able to get that HWND by drilling down for it. However, the fact that the spelling checker doesn't work without being passed the control's HWND may make this all moot based on it not working for VFP Textboxes and Editboxes.

Using MS Form Controls instead then you would have HWND's for all the controls and spelling checker would probably work quite nicely.

boyd.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top