|
Short story: Recreation of Charles Petzold's classic "HelloWin" demo; pure API, including exitcode.
Longer description from old site: click here.
To be edited...
This sample, or the one from which it originally derived, was published (or at least peripherally mentioned) in the following article(s):
- Don't Depend on SysInfo Control, Ask the VB Pro, VBPJ, March 2001
This sample uses the following API calls:
Module Library Function Hello.bas gdi32
kernel32
user32
winmmCreateSolidBrush
DeleteObject
GetStockObject
ExitProcess
GetStartupInfo
RtlMoveMemory
BeginPaint
CreateWindowEx
DefWindowProc
DestroyWindow
DispatchMessage
EndPaint
FillRect
GetClientRect
GetMessage
LoadCursor
LoadIcon
PostMessage
PostQuitMessage
RegisterClassEx
ShowWindow
TranslateMessage
UnregisterClass
UpdateWindow
PlaySoundDon't see what you're looking for? Here's a complete API cross-reference.
Please, enjoy and learn from this sample. Include its code within your own projects, if you wish. But, in order to insure only the most recent code is available to all, I ask that you don't share the sample by any form of mass distribution. Download Hello.zip, 13Kb, Last Updated: Wednesday, December 6, 2000
The following resources may also be of interest:
- StartupInfo - Provides access to various startup parameters offered to all applications by Windows.