Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot see the entire window
Message
De
14/07/2020 13:21:33
 
 
Information générale
Forum:
Windows
Catégorie:
Informatique en général
Divers
Thread ID:
01675168
Message ID:
01675172
Vues:
57
>>Press Alt+SPACEBAR when the window comes up and has focus, and then use the arrow keys. You can move the window that way. You an also use the mouse to move the window around once you move it by keyboard one time, but it may not scroll off the screen with the mouse. It will with the keyboard.
>
>This does not work. Thanks for your suggestion.

Another solution is to use the FindWindow() function, and then send it a command to reposition itself:
DECLARE INTEGER SetWindowPos IN WIN32API ;
    INTEGER nHWnd, ;
    INTEGER nHWndInsertAfter, ;
    INTEGER nX, ;
    INTEGER nY, ;
    INTEGER nCx, ;
    INTEGER nCy, ;
    INTEGER nFlags

#define SWP_NOSIZE          0x0001
#define SWP_NOMOVE          0x0002
#define SWP_NOZORDER        0x0004
#define SWP_NOREDRAW        0x0008
#define SWP_NOACTIVATE      0x0010
#define SWP_FRAMECHANGED    0x0020  /* The frame changed: send WM_NCCALCSIZE */
#define SWP_SHOWWINDOW      0x0040
#define SWP_HIDEWINDOW      0x0080
#define SWP_NOCOPYBITS      0x0100
#define SWP_NOSENDCHANGING  0x0400  /* Don't send WM_WINDOWPOSCHANGING */
#define SWP_NOREPOSITION    0x0200  /* Don't do owner Z ordering */

* Returns an HWND
DECLARE INTEGER FindWindow IN WIN32API STRING cClassName, STRING cCaption

lnHWnd = FindWindow(NULL, "Window Titlebar Caption")
IF lnHWnd != 0
    * Send a command to move the window
    SetWindowPos(lnHWnd, NULL, -50, -50, 0, 0, SWP_NOSIZE + SWP_NOZORDER + SWP_NOACTIVATE + SWP_SHOWWINDOW)
ENDIF
Something like that would work. If it's a popup modal window like a messagebox(), it won't move easily. If it's a normal window, it should work.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform