示例#1
0
// ----------------------------------------------------------------------------
// dialogProc
// ----------------------------------------------------------------------------
// the message procedure for the cgp dialog procedure, a dummy procedure
INT_PTR CALLBACK ProgressDialog::progDialogProc(HWND hWndDlg, UINT msg,
									   WPARAM wParam, LPARAM lParam) {
   //this->hWnd = hWnd;
	if (msg == WM_INITDIALOG) {
		ProgressDialog* progD = reinterpret_cast<ProgressDialog*>(lParam);
		SetWindowLong(hWndDlg, GWL_USERDATA, reinterpret_cast<long>(progD));
		
	}
	// get the WWindow structure and pass the data to that
	ProgressDialog* progD = (ProgressDialog *) GetWindowLong(hWndDlg, GWL_USERDATA); 
	if (progD)
		return progD->realProgDialogProc(hWndDlg, msg, wParam, lParam);
	
										   
	
} // --- dialogProc -----------------------------------------------------------