Wine, WineLib and "Programming Windows 95 with MFC"
Last updated: 2000/10/20
Description
Shows off the CEdit control. In effect this is a simple text editor with
line wrapping, a vertical scrollbar, right-click menu offering
one-level undo, cut, copy, paste, delete and select all functionality. The
usual keyboard shortcuts also work (Ctrl-X, Ctrl-C, Ctrl-Ins,...)
Wine tests
- The vertical scrollbar is enabled as soon as two
lines are created. This is different from the Windows behavior where the
scrollbar is enabled only when the text becomes too large to entirely
fit in the window.
- Shift-Del works but inserts a '.'!
- Ctrl-Home and Ctrl-End don't work.
- The popup menu contains several separators. If I
click on one of them Wine closes the menu.
- Even with a reasonably sized window, editing the
last line, deleting characters for instance, is causing a very visible
and annoying blinking of the whole window.
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
IsClipboardFormatAvailable
Last updated: 2000/10/20
Description
Demonstrates the use of a one-line CEdit control and of CNumEdit. You can
switch from one to the other using Tab and Shift-Tab. Note that in CNumEdit
you will only be able to type digits.
Wine tests
- Switching from one control to the other using Tab
does not work.
- When enlarging the window, the both the bottom and
right side of the lowered border leave a light 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
IsDialogMessageA
Last updated: 2000/10/20
Description
Shows three ways to put a bitmap in a button. Using the CBitmapButton MFC
class, using regular Windows 95 buttons and the BS_BITMAP style, or using
regular Windows 95 buttons and the BS_ICON style.
Wine tests
- One can see all the steps of the redraw of the
BS_ICON button. It's quite annoying.
Tested API
- GDI32
DeleteObject
- 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
LoadBitmapA
Last updated: 2000/10/20
Description
Shows how to change the color of a control from the parent by implementing
OnCtlColor.
Wine tests
- 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
GetSysColor, GetSysColorBrush
Last updated: 2000/10/20
Description
Shows how to implement a control that knows how to change its own color
by reflecting the WM_CTLCOLOR message to the control itself.
Wine tests
- 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
GetSysColor
Last updated: 2000/10/20
Description
This application displays the list of fonts installed on the system and
shows a sample of the selected font. Note that the print functionality is not
implemented. Clicking on 'Show TrueType fonts only' disables the print
button, forever.
Wine tests
- Some fonts, like Symbol, don't display at all.
Similarly, 'Windings' does not display anything but still manages to
erase part of the border around the display area.
- If the user selects 'Show TrueType fonts only'
then there is no font left in the list. This could be annoying
as I'm quite sure there are applications out there that will only
show TrueType fonts to the user.
Tested API
- GDI32
EnumFontFamiliesA
- 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
Creates an ownerdrawn listbox showing the icons contained in a dll or
executable. You choose the dll or executable by dropping it onto the listbox
(as in drag and drop).
Wine tests
- I have not been abe to start an application from
which to take the file for the drag and drop.
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
- SHELL32
DragFinish, DragQueryFileA, ExtractIconA
- USER32
GetSysColor