Article ID: 138564
Article Last Modified on 10/24/2003
Progress Control
TreeView Control
ListView Control
Slider Control
Tab Control
Animate Control
Spin Control
/* Ctl3d Control ID*/The value 1 corresponds to a list box control, so actually what you are telling Ctl3d32.dll is that you are subclassing a list box control. Because the DLL only handles the painting of the border of the control, this method should work with the previously listed controls.
// This code shows how to give Windows 95 common controls a 3D look
// in an MFC application.
// Initialize Ctl3d32.dll as shown below. A default
// AppWizard-generated application will already have this code:
CMyApp::InitInstance()
{
Enable3dControls();
...
}
// If you have a member variable associated with the control,
// use code similar to the following in your OnInitDialog or your
// OnInitialUpdate function.
m_Progress.SubclassCtl3d(1);
// If you do not have a variable associated with the control,
// then you can use GetDlgItem to obtain one, for example:
GetDlgItem(IDC_PROGRESS1)->SubclassCtl3d(1);
Technical Articles
Windows Articles
User Interface Articles
Windows(16-bit)Only
This article discusses the implementation of earlier versions of
Ctl3d32.dll.
Additional query words: 2.20 3.2 3.20 4.00
Keywords: kbprb KB138564