-
Notifications
You must be signed in to change notification settings - Fork 3
/
LogIn.cpp
63 lines (45 loc) · 1.18 KB
/
LogIn.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// LogIn.cpp: 구현 파일
//
#include "stdafx.h"
#include "WM.h"
#include "LogIn.h"
#include "afxdialogex.h"
#include "QRmain.h"
// LogIn 대화 상자
IMPLEMENT_DYNAMIC(LogIn, CDialogEx)
LogIn::LogIn(CWnd* pParent /*=nullptr*/)
: CDialogEx(IDD_LoginDlg, pParent)
{
}
LogIn::~LogIn()
{
}
void LogIn::DoDataExchange(CDataExchange* pDX)
{
CDialogEx::DoDataExchange(pDX);
DDX_Control(pDX, IDC_EDIT1, ID);
}
BEGIN_MESSAGE_MAP(LogIn, CDialogEx)
ON_BN_CLICKED(IDC_BUTTON1, &LogIn::OnBnClickedLog)
ON_WM_PAINT()
END_MESSAGE_MAP()
void LogIn::OnBnClickedLog()
{
CString data; // m_Editln에 입력되는 문자열 저장하기 위한 CString변수
CString tmpStr = _T("");
int v;
// edit Control에 입력되는 문자열을 CString에 대입
ID.GetWindowTextW(data);
QrImg = doBasicDemo(data); // Qrcode Image
OnOK();
}
BOOL LogIn::PreTranslateMessage(MSG* pMsg)
{
// TODO: 여기에 특수화된 코드를 추가 및/또는 기본 클래스를 호출합니다.
if ((pMsg->message == WM_KEYDOWN) && (pMsg->wParam == VK_RETURN))
{
OnBnClickedLog();
return true;
}
return CDialogEx::PreTranslateMessage(pMsg);
}