// AddingFontsDlg.cpp : implementation file // #include "stdafx.h" #include "resource.h" #include "ProgressDlg.h" ///////////////////////////////////////////////////////////////////////////// // CProgressDlg dialog CProgressDlg::CProgressDlg() { m_bCancel = false; } ///////////////////////////////////////////////////////////////////////////// // CProgressDlg message handlers LRESULT CProgressDlg::OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled) { // Remove Window DestroyWindow(); // Set Cancel Flag m_bCancel = true; return 0; } LRESULT CProgressDlg::OnClose(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { return OnCancel(0, 0, NULL, bHandled); } LRESULT CProgressDlg::OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled) { m_ctlProgress = GetDlgItem(IDC_PROGRESS2); CenterWindow(GetDesktopWindow()); return TRUE; // return TRUE unless you set the focus to a control }