text: // MainDlg.h : interface of the CMainDlg class
  //
  /////////////////////////////////////////////////////////////////////////////
  
  #pragma once
  
  class CMainDlg : public CDialogImpl<CMainDlg> {
  public:
  	enum { IDD = IDD_MAINDLG };
  
  	BEGIN_MSG_MAP(CMainDlg)
  		MESSAGE_HANDLER(WM_TIMER, OnTimer)
  		MESSAGE_HANDLER(WM_APP + 1, OnCallbackStart)
  		MESSAGE_HANDLER(WM_APP + 2, OnCallbackEnd)
  		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
  		COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
  		COMMAND_ID_HANDLER(IDC_SUBMIT, OnSubmitWorkItem)
  		COMMAND_ID_HANDLER(IDC_SUBMIT10, OnSubmit10WorkItems)
  		COMMAND_ID_HANDLER(IDC_CLEAR, OnClear)
  	END_MSG_MAP()
  
  	// Handler prototypes (uncomment arguments if needed):
  	//	LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
  	//	LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
  	//	LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
  
  private:
  	static void CALLBACK OnCallback(PTP_CALLBACK_INSTANCE instance, PVOID context);
  
  	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  	LRESULT OnTimer(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  	LRESULT OnCallbackStart(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  	LRESULT OnCallbackEnd(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
  	LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
  	LRESULT OnSubmitWorkItem(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
  	LRESULT OnSubmit10WorkItems(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
  	LRESULT OnClear(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
  
  private:
  	CListBox m_List;
  };
  