1 |
// ResultDialog.cpp : implementation file |
/* |
2 |
// |
* Developed by Torben H. Nielsen |
3 |
|
*/ |
4 |
|
|
5 |
#include "stdafx.h" |
#include "stdafx.h" |
6 |
#include "h6-udlånssystem.h" |
#include "h6-udlånssystem.h" |
104 |
{ |
{ |
105 |
CListCtrl *list = (CListCtrl *) GetDlgItem(IDC_LIST); |
CListCtrl *list = (CListCtrl *) GetDlgItem(IDC_LIST); |
106 |
int sel = list->GetSelectionMark(); |
int sel = list->GetSelectionMark(); |
107 |
|
|
108 |
if (sel == -1) { |
if (sel == -1) { |
109 |
MessageBox("You must select an item"); |
MessageBox("You must select an item"); |
110 |
return; |
} else { |
111 |
} |
ResultDetailsDialog resdialog; |
112 |
|
resdialog.m_resultIndex = sel; |
113 |
|
|
114 |
ResultDetailsDialog resdialog; |
resdialog.DoModal(); |
115 |
resdialog.m_resultIndex = sel; |
} |
|
|
|
|
resdialog.DoModal(); |
|
116 |
} |
} |