Visual C++ UseRes Sample

    You can find the sample code in "samples\vc\useres" directory. It's written in Visual C++ 5.0. We also tested the code to make sure it works in Visual C++ 6.0.

    The steps to create UseRes sample is quite similar to create UseSkin sample. The only difference is that instead of putting skins in skins directory, you import them to the resource file. See Visual C++ UseSkin Sample for the detailed steps

    The major difference is in the Runtime code. Following is the code segment from UseRes OnInitDialog() function

	m_magicshape.SetImageSkinID((long)AfxGetInstanceHandle(), IDB_BACKGROUND, IDB_BACKGROUND_MASK);
	m_bt_leftball.SetImageID((long)AfxGetInstanceHandle(), IDB_BT_BLUECIRCLE);
	m_bt_rightball.SetImageID((long)AfxGetInstanceHandle(), IDB_BT_BLUECIRCLE);
	m_bt_square.SetImageID((long)AfxGetInstanceHandle(), IDB_BT_SQUARE);
	m_bt_cancel.SetImageID((long)AfxGetInstanceHandle(), IDB_BT_CANCEL);