VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

TiResize ActiveX Control

Stuart Naylor  (2 Submissions)   Custom Controls/Forms/Menus   Visual Basic 5.0   Advanced   Wed 3rd February 2021

Resize controls in the same manner as the IDE at runtime

Side Effects
I haven't tried it but can someone see if scroll bars cause problems?

API Declarations
Public Declare Function ReleaseCapture Lib "user32" () As Long
Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, _
ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
'API Declarations used for subclassing.
Public Declare Sub CopyMemory _
Lib "kernel32" Alias "RtlMoveMemory" _
(pDest As Any, _
pSrc As Any, _
ByVal ByteLen As Long)
Public Declare Function SetWindowLong _
Lib "user32" Alias "SetWindowLongA" _
(ByVal hWnd As Long, _
ByVal nIndex As Long, _
ByVal dwNewLong As Long) As Long
Public Declare Function GetWindowLong _
Lib "user32" Alias "GetWindowLongA" _
(ByVal hWnd As Long, _
ByVal nIndex As Long) As Long
Public Declare Function CallWindowProc _
Lib "user32" Alias "CallWindowProcA" _
(ByVal lpPrevWndFunc As Long, _
ByVal hWnd As Long, _
ByVal Msg As Long, _
ByVal wParam As Long, _
ByVal lParam As Long) As Long

Public Declare Function ChildWindowFromPoint _
Lib "user32" (ByVal hWnd As Long, ByVal xPoint As Long, _
ByVal yPoint As Long) As Long

Rate TiResize ActiveX Control (6(6 Vote))

Download TiResize ActiveX Control

TiResize ActiveX Control Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters