-
Notifications
You must be signed in to change notification settings - Fork 0
/
DlgClustNum.cpp
48 lines (36 loc) · 931 Bytes
/
DlgClustNum.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// DlgClustNum.cpp : implementation file
//
#include "stdafx.h"
#include "WClust.h"
#include "DlgClustNum.h"
#include ".\dlgclustnum.h"
// CDlgClustNum dialog
IMPLEMENT_DYNAMIC(CDlgClustNum, CDialog)
CDlgClustNum::CDlgClustNum(CWnd* pParent /*=NULL*/)
: CDialog(CDlgClustNum::IDD, pParent)
{
}
CDlgClustNum::~CDlgClustNum()
{
}
void CDlgClustNum::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
}
BEGIN_MESSAGE_MAP(CDlgClustNum, CDialog)
ON_BN_CLICKED(IDOK, OnBnClickedOk)
END_MESSAGE_MAP()
// CDlgClustNum message handlers
void CDlgClustNum::OnBnClickedOk()
{
// TODO: Add your control notification handler code here
CEdit* edit = (CEdit*)GetDlgItem(IDC_EDIT_CLUST_NUMS);
edit->SetFocus();
CString strEdit;
edit->GetWindowText(strEdit);
int tmp=0;
sscanf(strEdit.GetString(),"%d",&tmp);
extern int gNumClusts;
gNumClusts = tmp;
OnOK();
}