by Billy Conner (7 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating:
(6 Votes)

This is just a sample program that shows how to set the Caption to the right side of your form using API. Also included is a way to make your form appear backwards. I havent seen this done by using API before, Just cheap imitations using strings. !Win2k only!
API Declarations--API Declares---
Function GetWindowLongA Lib "user32"
Function SetWindowPos Lib "user32"
Function SetWindowLongA Lib "user32"
---Constants---
GWL_EXSTYLE
SWP_NOZORDER
SWP_NOMOVE
SWP_NOSIZE
WS_EX_LAYOUTRTL
WS_EX_RIGHT