Wine, WineLib and "Programming Windows 95"
Last updated: 2003/5/4
Description
Stores a poem by Victor Hugo in a resource, loads it and displays it in a
window. The scrollbar has the focus and can be scrolled using the keyboard.
Wine tests
- Works just like on Windows.
Winelib tests
Tested API
- GDI32
GetStockObject, GetTextMetricsA
- KERNEL32
CloseHandle, ExitProcess, FindResourceA, FlushFileBuffers, FreeEnvironmentStringsA, FreeEnvironmentStringsW, FreeResource, GetACP, GetCPInfo, GetCommandLineA, GetEnvironmentStrings, GetEnvironmentStringsW, GetFileType, GetLastError, GetModuleFileNameA, GetModuleHandleA, GetOEMCP, GetProcAddress, GetStartupInfoA, GetStdHandle, GetVersion, HeapAlloc, HeapCreate, HeapFree, LoadLibraryA, LoadResource, LockResource, RtlUnwind, SetFilePointer, SetHandleCount, SetStdHandle, UnhandledExceptionFilter, WideCharToMultiByte, WriteFile
- USER32
BeginPaint, CharNextA, CreateWindowExA, DefWindowProcA, DispatchMessageA, DrawTextA, EndPaint, GetClientRect, GetDC, GetMessageA, GetScrollPos, GetSystemMetrics, InvalidateRect, LoadCursorA, LoadIconA, LoadStringA, MoveWindow, PostQuitMessage, RegisterClassExA, ReleaseDC, SetFocus, SetScrollPos, SetScrollRange, ShowWindow, TranslateMessage, UpdateWindow
Last updated: 2003/5/4
Description
Stores an icon and a cursor as resources. It then loads both, displays
the icon forming a grid, and sets the mouse pointer to be the cursor.
Wine tests
- The cursor is not displayed correctly (or maybe it
is not loaded correctly). It should look like three nested Vs flipped
vertically. On a white background the two outer Vs are composed of a
black line and a white inner linning. The inner V is so small it is all
black anyway. See
bug #66.
- Then there's the issue of what the cursor should
look like on a non white background. It seems that parts of it should do
an xor on the background but this behavior is not consistent between
Windows 95 and 98. So more investigation is required to determine exactly
what was intended.
Winelib tests
Tested API
- KERNEL32
CloseHandle, ExitProcess, FlushFileBuffers, FreeEnvironmentStringsA, FreeEnvironmentStringsW, GetACP, GetCPInfo, GetCommandLineA, GetEnvironmentStrings, GetEnvironmentStringsW, GetFileType, GetLastError, GetModuleFileNameA, GetModuleHandleA, GetOEMCP, GetProcAddress, GetStartupInfoA, GetStdHandle, GetVersion, HeapAlloc, HeapCreate, HeapFree, LoadLibraryA, RtlUnwind, SetFilePointer, SetHandleCount, SetStdHandle, UnhandledExceptionFilter, WideCharToMultiByte, WriteFile
- USER32
BeginPaint, CreateWindowExA, DefWindowProcA, DispatchMessageA, DrawIcon, EndPaint, GetMessageA, GetSystemMetrics, LoadCursorA, LoadIconA, PostQuitMessage, RegisterClassExA, ShowWindow, TranslateMessage, UpdateWindow
Last updated: 2003/5/4
Description
This program contains a black and white bitmap as a resource that it uses as a brush to paint the background. It also contains the same cursor are resourc1.
Wine tests
- The cursor is not displayed correctly (or maybe it is not loaded correctly). It should look like two nested Vs flipped vertically. Each V is composed of a black line and a white inner linning.
Winelib tests
Tested API
- GDI32
CreatePatternBrush, DeleteObject
- KERNEL32
CloseHandle, ExitProcess, FlushFileBuffers, FreeEnvironmentStringsA, FreeEnvironmentStringsW, GetACP, GetCPInfo, GetCommandLineA, GetEnvironmentStrings, GetEnvironmentStringsW, GetFileType, GetLastError, GetModuleFileNameA, GetModuleHandleA, GetOEMCP, GetProcAddress, GetStartupInfoA, GetStdHandle, GetVersion, HeapAlloc, HeapCreate, HeapFree, LoadLibraryA, RtlUnwind, SetFilePointer, SetHandleCount, SetStdHandle, UnhandledExceptionFilter, WideCharToMultiByte, WriteFile
- USER32
BeginPaint, CreateWindowExA, DefWindowProcA, DispatchMessageA, DrawIcon, EndPaint, GetMessageA, GetSystemMetrics, LoadBitmapA, LoadCursorA, LoadIconA, PostQuitMessage, RegisterClassExA, ShowWindow, TranslateMessage, UpdateWindow