[slinkelist] Plea for VB help

Ted Smith tedsmith@microsoft.com
Tue, 6 Jun 2000 11:31:28 -0700


In fact, you probably want to use the "API Text Viewer", which is under the
"Visual Studio 6.0 Tools" menu on my system. (The actual program name on my
system is "C:\Program Files\Microsoft Visual
Studio\Common\Tools\Winapi\APILOAD.EXE".)

Anyway it lets you select any of the Win32 API structures/routines and
produces VB declarations for you to copy into your VB source, here are the
results for the routines Mike mentioned:

Public Declare Function GetSystemMetrics Lib "user32" Alias
"GetSystemMetrics" (ByVal nIndex As Long) As Long
Public Declare Function SystemParametersInfo Lib "user32" Alias
"SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef
lpvParam As Any, ByVal fuWinIni As Long) As Long
Public Declare Function GetWindowRect Lib "user32" Alias "GetWindowRect"
(ByVal hwnd As Long, lpRect As RECT) As Long
Public Declare Function GetClientRect Lib "user32" Alias "GetClientRect"
(ByVal hwnd As Long, lpRect As RECT) As Long
Public Type RECT
        Left As Long
        Top As Long
        Right As Long
        Bottom As Long
End Type

-Ted

-----Original Message-----
From: Mike Kropp [mailto:mkropp@cathouse.mv.com]
Sent: Monday, June 05, 2000 7:34 AM
To: keith alexander; Slink-e List
Subject: RE: [slinkelist] Plea for VB help


I'm not a VB person but do know that you can access the Windows API from VB.
Use it to get what you need.  The GetSystemMetrics, SystemParametersInfo,
GetWindowRect, and GetClientRect APIs should do the trick.

--Mike

> -----Original Message-----
> From: slinkelist-admin@nirvis.com [mailto:slinkelist-admin@nirvis.com]On
> Behalf Of keith alexander
> Sent: Monday, June 05, 2000 10:03 AM
> To: slinkelist@nirvis.com
> Subject: [slinkelist] Plea for VB help
>
>
> I am struggling with the requested mod to PartyGUI
> (support for multiple screens).  VB does not return
> the actual screen dimensions from Screen.Height and
> Screen.Width it returns the values for the main
> screen, not the current screen.  Also Form.Height does
> not seem to be properly displaying the actual height
> and width of the form when it is maximized (this is
> strange behavior).
>
> Basically getting these sizing parms to work is
> holding up an improved version of PartyGUI.  Anyone
> have any thoughts?
>
> Thanks,
> KJA
>
> =====
> Keith Alexander
> alexanders@rocketmail.com
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos -- now, 100 FREE prints!
> http://photos.yahoo.com
>
>
> _______________________________________________
> slinkelist maillist  -  slinkelist@nirvis.com
> http://www.nirvis.com/mailman/listinfo/slinkelist
>



_______________________________________________
slinkelist maillist  -  slinkelist@nirvis.com
http://www.nirvis.com/mailman/listinfo/slinkelist