|
|
1-20 of 105 Visual Basic Windows API sites are shown.
|
|
This advanced module allows you to call API functions by name without declaring and to return values from them. It uses Assembly Language within VB code to accomplish this task.
|
|
|
|
|
|
|
This class includes functions for displaying most available Windows dialogs, including those commonly called from VB (e.g., File Open, File Save, Print) and those less commonly called (e.g., the system's Find All Files Dialog).
|
|
|
|
|
|
|
A tray icon application without subclassing, encapsulated into a single form, and with all of the common system tray features.
|
|
|
|
|
|
|
This is a great sample application for anybody who wants to dive into hard core system and graphics programming.
|
|
|
|
|
|
|
This demonstration application enumerates all parent windows, and each of their child window. It also displays each window's text and allows you to change this text.
|
|
|
|
|
|
|
Simply add this control to your form and set one property and get a whole gamut of new events.
|
|
|
|
|
|
|
This applicaton is designed to manage and implement hotkeys in Windows 95/98/NT. The application uses a number of custom Active X controls and dlls, such as an AOL style button, and custom grids and image list. The source code to all these components is included with this package. Register the compiled versions of each of these components using regsvr32, then open the file called hotkey_manager.vbg
|
|
|
|
|
|
|
The attached code shows how to locate files in a directory using the FileSystemObject. You can search just within the specified directory or include all subdirectories in the search.
|
|
|
|
|
|
|
I had a situation where I wanted a label below the tabs on a TabStrip control and above a ListView control. The Label control would not work because it falls behind the other controls I could have used a picturebox and printed text on it but I decided to subclass the tabstrip and print directly on it instead. That is what this project shows how to do. You should be able to duplicate this with any control that has a hWnd property. You can use it to print text or draw graphics on different control
|
|
|
|
|
|
|
It is possible to hook messages associated with the standard message box to play around with its restricted form (e.g. change button captions, etc.) This example goes a bit further and allows the changing of the icon from one of the four available to any (static) icon. Also, a routine is included to place an animated icon (*.ani file) on a form, or anything that has a hwnd property. By finding the hwnd of the Msgbox icon in the hook procedure, the animation can be placed in the msgbox, as shown
|
|
|
|
|
|
|
This application allows you to select a .dll or .exe on a hard drive and view or save it's resources (e.g., bitmaps, icons, strings, etc. contained in a resource file associated with the binary file).
|
|
|
|
|
|
|
This OCX uses undocumented functions to provide a Windows Explorer, Folder View, and File List Control. Register the OCX first before using the test client.
|
|
|
|
|
|
|
This application shows you how to send a pointer to a structure filled with data to a window owned by another process. If the windows was owned by your own process, you can use the SendMessage API call for this purpose; but if you try this in communicating with another process, a GPF will occur. In Windows 9x/ME, the workaround it to use File Mapping, because the OS places mapped files into shareable memory space. In NT/2000/XP, files are mapped into the calling process's memory area, so in
|
|
|
|
|
|
|
This class simulates keystrokes using the keybd_event API. If offers two advantages over SendKeys. First, it doesn't cause the num lock light to flicker unless you specifically press the num lock key. Secondly, it's possible to press and hold a key. Sample Usage: Dim keys As New clsKeys Dim bCapsLock As Boolean keys.GetLockStatus bCapsLock, True, True If bCapsLock Then keys.PressKeyVK keyCapsLock End If keys.PressString "Now is the time for all good men to come to " & _ "the aid of their
|
|
|
|
|
|
|
This application tracks keyboard and mouse-related messages sent to windows in other applications. Version 2.0, release 03/16/01, now works in all versions of Windows.
|
|
|
|
|
|
|
This .dll providess the AdvShell function -- a replacement of standard Visual Basic function "Shell", and a number of other related properties:
|
|
|
|
|
|
|
ViewWinInfo is a windows information viewer. You can use this sample to find or select an open window, and view information about the window, such as its hwnd, size, and parent window. This project provides numerous demonstrations of the advanced technique of message hooking.
|
|
|
|
|
|
|
Show you how to Activate/Deactivate the Screen Saver
|
|
|
|
|
|
|
This demo application shows you how to add an icon to the system tray and popup a menu when user clicks the icon.
|
|
|
|
|
|
|
Add Scroll Bars to Controls Purely Through the API
|
|
|
|
|
|
|