ShowGrayScaleDlg Example for C++ 5.0 and later
void CDialogs::OnShowGrayScaleDlg()
{
m_pRasterColorDlg->RedFactor = 400;
m_pRasterColorDlg->GreenFactor = 300;
m_pRasterColorDlg->BlueFactor = 300;
m_pRasterColorDlg->UIFlags = GRAYSCALE_SHOW_PREVIEW |
GRAYSCALE_SHOW_TOOL_ZOOMLEVEL;
m_pRasterColorDlg->Bitmap = m_LeadRasterView.GetRaster().GetBitmap ();
m_pRasterColorDlg->ShowGrayScaleDlg((long) this->m_hWnd);
}