Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Switch to another app/switch back to mine
Message
De
08/07/2005 08:27:46
 
 
À
08/07/2005 01:49:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01030278
Message ID:
01030362
Vues:
23
>I'm using a 3rd party toolbar component that loses access keyboard events when I REPORT FORM in a top level form. The workaround - to restore access to keyboard events - is to Alt+Tab to another application and then back to my application. This restores my 3rd party toolbar's ability to recognize keyboard events. I can also restore keyboard events by using the mouse to resize my top level form.
>
>Any suggestions on an API call that would accomplish the same effect as either of these techniques?
>
>Thanks!
>Malcolm


Hi Malcolm,

Since I don't how that third party works in your app, this is just one idea. I think this is really ugly. But try it first
** Note: run "visual notepad" <g> prior to run this program

Declare Long FindWindow in User32 ;
   String lpClassName, String lpWindowTitle

Declare Long SetWindowPos in User32 ;
   Long nhWnd, Long hWndInsertAfter, ;
   Integer X, Integer Y, Integer cX, Integer cY, Long wFlags

hWndNotepad = FindWindow( Null, 'Untitled - Notepad' )
SetWindowPos( hWndNotepad, 0, 0,0, 0,0, 3 )
Doevents
= inkey( 0.1 )
SetWindowPos( _VFP.hWnd, 0, 0,0, 0,0, 3 )

Clear Dlls FindWindow, SetWindowPos
Regards
Herman
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform