Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handle to windows common controls
Message
 
To
06/06/2001 10:55:04
Valter Herman
Tuesday Morning, Inc.
Dallas, Texas, United States
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00515250
Message ID:
00516222
Views:
14
>Well, actually I'm speaking of the basic combo box provided by the Visual Fox Pro form controls toolbar.
>
>The problem with this is that the easy way of doing it is much to slow on combo boxs with many (1000 and up) items in the list box (an incremental search on the items in the list every time a keypress event occurs).
>
>We solved this issue in a VB program we had by using an API call. The problem with running this in FoxPro is that VFP 5.0 does not provide handles to common controls...as far as I can tell from the research I've done. Is this true from what you know?
>
Valter,

You can't get a window handle to any of the default VFP controls, except forms. Why? They're not windows as they are in other environments such as VB and VC++. Now, if you want to use a ActiveX control (the Microsoft Forms 2.0 may include one), it's a different story.

You can confirm this by using a tool like Spy++ that comes with the VS tools, or something like my SpyFoxFox. Both will enumerate all open windows (including those that are controls).
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform