Get External Window Boundaries
Blitz3D Forums/Blitz3D Programming/Get External Window Boundaries| 
 | ||
| Ok, say youre running Word or any other non blitz program and you would like to retrieve the window boundaries (x,y coords and the width/height preferably) of that external window from blitz. Is this possible? I thought I saw that winBlitz3d could do something like this but I'm not sure. | 
| 
 | ||
| Hi Fuller. winblitz3d could do this, first you would need to call the api FindWindow() to get the HWND of the required window then pass it to winblitz3d wb3d_gadgetx() ect.. commands. kev | 
| 
 | ||
| What If you dont know the window what the window is that is up? | 
| 
 | ||
| You need to search for the window. Probably you need to use Api_GetTitle(), or so. If you once got the HWND, it's easy to  retrieve the full window size using Api_GetSystemMetrics. If you're not familar with Windows Api calls, and how to add them to the blitz userlibs, then you should get a Windows Api documentation. Also try to get a list of windows constants definitions, example: SM_CYBORDER = 6. They are often required as parameters. |