Wine, WineLib and "Programming Windows 95 with MFC"
Last updated: 2000/10/20
Description
Same as GdiDemo3 but adds a keyboard interface.
Wine tests
- Same as GdiDemo1 for the gdi aspects.
- Just like on Windows for all other aspects.
Tested API
- KERNEL32
GetModuleHandleA, GetStartupInfoA, GetVersion, Sleep
- MSVCR40D
_XcptFilter, __CxxFrameHandler, __dllonexit, __getmainargs, __p__acmdln, __p__commode, __p__fmode, __set_app_type, __setusermatherr, _adjust_fdiv, _controlfp, _except_handler3, _exit, _initterm, _onexit, _setmbcp, exit
Last updated: 2000/10/20
Description
Demonstrates how to capture the mouse. This application allows the user
to draw segments. Thanks to the mouse capture, this works even if the mouse
goes out of the client area. Note this application does not remember where
things were drawn so that it is unable to repaint itself if some area is
covered by another window.
Wine tests
- There seems to be a slight delay before the red
line segment is drawn.
- When enlarging the window, the both the bottom and
right side of the lowered border leave a gray line behind.
Tested API
- KERNEL32
GetModuleHandleA, GetStartupInfoA, GetVersion, Sleep
- MSVCR40D
_XcptFilter, __CxxFrameHandler, __dllonexit, __getmainargs, __p__acmdln, __p__commode, __p__fmode, __set_app_type, __setusermatherr, _adjust_fdiv, _controlfp, _except_handler3, _exit, _initterm, _onexit, _setmbcp, exit
- USER32
ReleaseCapture
Last updated: 2000/10/20
Description
A game of tic-tac-toe where you must play both sides.
Wine tests
Tested API
- KERNEL32
GetModuleHandleA, GetStartupInfoA, GetVersion, Sleep
- MSVCR40D
_XcptFilter, __CxxFrameHandler, __dllonexit, __getmainargs, __p__acmdln, __p__commode, __p__fmode, __set_app_type, __setusermatherr, _adjust_fdiv, _controlfp, _except_handler3, _exit, _initterm, _onexit, _setmbcp, exit, memset
Last updated: 2000/10/20
Description
The window is composed of an edit box which allows you to type things.
This edit box works in overwrite mode only, is reset when you fill it up or
if you hit escape or return. Finally you can erase characters using backspace
or move the caret around using the arrow keys or the mouse.
While you're doing all this, a scroll list displays all the keyboard messages
received by the application.
Wine tests
- Ctrl, Shift, Alt and Caps Lock will not
auto-repeat unlike in Windows. Is it Wine or my X keyboard
configuration?
- The message sequence that Wine generates when a
key is in auto-repeat mode is incorrect. In Windows one gets a series of
WM_KEYDOWN messages. The first one has the 'repeat' bit set to 0, and
all those that come after have it set to 1. Then when the key is released
the application gets a single WM_KEYUP message. In Wine the application
receives a successsion of WM_KEYDOWN and WM_KEYUP messages instead. Note
that this description is valid for a key like the down arrow key. If the
key generates characters, 'a' for instance, then these messages streams
are interspersed with WM_CHAR messages. But the principle remains the
same.
Tested API
- KERNEL32
GetModuleHandleA, GetStartupInfoA, GetVersion, Sleep
- MSVCR40D
_XcptFilter, __CxxFrameHandler, __dllonexit, __getmainargs, __p__acmdln, __p__commode, __p__fmode, __set_app_type, __setusermatherr, _adjust_fdiv, _controlfp, _except_handler3, _exit, _initterm, _onexit, _setmbcp, exit
- USER32
DestroyCaret, GetMessagePos, GetSysColor, GetSystemMetrics, SetCursor