Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.2 KiB

  1. // MsgBox.cpp : Implementation of CMsgBox
  2. #include "stdafx.h"
  3. #include "RcBdyCtl.h"
  4. #include "MsgBox.h"
  5. #include "DeleteMsgDlg.h"
  6. #include "InvitationDetailsDlg.h"
  7. /////////////////////////////////////////////////////////////////////////////
  8. // CMsgBox
  9. STDMETHODIMP CMsgBox::DeleteTicketMsgBox(BOOL *pRetVal)
  10. {
  11. if (!pRetVal)
  12. return E_POINTER;
  13. CDeleteMsgDlg DeleteMsgDlg;
  14. *pRetVal = ( (DeleteMsgDlg.DoModal()) == IDOK) ? TRUE : FALSE;
  15. return S_OK;
  16. }
  17. STDMETHODIMP CMsgBox::ShowTicketDetails(BSTR bstrTitleSavedTo, BSTR bstrSavedTo, BSTR bstrExpTime, BSTR bstrStatus, BSTR bstrIsPwdProtected)
  18. {
  19. //This dialog should always be created as Modeless dialog. Dont create
  20. /* CInvitationDetailsDlg *ptrInvitationDetailsDlg;
  21. ptrInvitationDetailsDlg = new CInvitationDetailsDlg(bstrTitleSavedTo, bstrSavedTo, bstrExpTime, bstrStatus, bstrIsPwdProtected);
  22. ptrInvitationDetailsDlg->Create(::GetForegroundWindow());
  23. ptrInvitationDetailsDlg->ShowWindow(SW_SHOWNORMAL);*/
  24. //Show Modal dialog
  25. CInvitationDetailsDlg InvitationDetailsDlg(bstrTitleSavedTo, bstrSavedTo, bstrExpTime, bstrStatus, bstrIsPwdProtected);
  26. InvitationDetailsDlg.DoModal();
  27. return S_OK;
  28. }