SetRubberStampItem Example VC++

This example lets users select the type of rubber stamp they want to use.

void CImgEdit2Dlg::OnSetcurrentstamp() 
{
    // This would allow a user to click on a stamp in order to
    // select it as the current stamp.  See GetRubberStampMenuItems
    // for an example of how to create a list of stamps.
    // Load the list box
    CStampList frmStampList;
    frmStampList.m_pParent= this;   
    frmStampList.DoModal();
    ImgEdit1.SetRubberStampItem(frmStampList.m_intNewStamp);
}