ShowBrightnessDlg Example for C++ 5.0 and later
void CDialogs::OnShowBrightnessDlg()
{
int nRet;
m_pRasterColorDlg->UIFlags
= BRIGHTNESS_SHOW_PREVIEW |
BRIGHTNESS_SHOW_TOOL_ZOOMLEVEL;
m_pRasterColorDlg->Bitmap
= m_LeadRasterView.GetRaster ().GetBitmap ();
nRet= m_pRasterColorDlg->ShowBrightnessDlg((long)this->m_hWnd);
if ( nRet == 0 && m_pRasterColorDlg->DialogStatus
== DLG_OK )
{
m_pRasterProc->Intensity (m_LeadRasterView.GetRaster(),m_pRasterColorDlg->Change);
}
}