ShowHistogramDlg Example for C++ 5.0 and later
void CDialogs::OnShowHistogramDlg()
{
m_pRasterImageDlg->Bitmap = m_LeadRasterView.GetRaster ().GetBitmap ();
m_pRasterImageDlg->BlueChannelPenColor= RGB(0, 0, 255);
m_pRasterImageDlg->GreenChannelPenColor = RGB(0, 255, 0);
m_pRasterImageDlg->RedChannelPenColor= RGB(255, 0, 0);
m_pRasterImageDlg->MasterChannelPenColor= RGB(0, 0, 0);
m_pRasterImageDlg->UIFlags = HISTOGRAM_SHOW_VIEWSTYLE |
HISTOGRAM_USERPENCOLORS;
m_pRasterImageDlg->ShowHistogramDlg( (long)this->m_hWnd );
}