
-
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


본문내용
// LottoDlg.h : 헤더 파일
//
#include
#pragma once
// CLottoDlg 대화 상자
class CLottoDlg : public CDialog
{
// 생성입니다.
public:
CLottoDlg(CWnd* pParent = NULL); // 표준 생성자입니다.
// 대화 상자 데이터입니다.
enum { IDD = IDD_LOTTO_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
public:
BOOL m_bClose;
// 구현입니다.
protected:
HICON m_hIcon;
// 생성된 메시지 맵 함수
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
int m_dX; //다이얼로그 생성시 좌표를 확실히 하기 위하여
int m_dY; //다이얼로그 생성시 좌표를 확실히 하기 위하여
CBitmap Back_bitmap[7];
CBitmap Back_bitmap1[5];
CDC Back_DCmain[7];
CDC Back_DCmain1[5];
bool m_fScreen[6];
bool flag[6][45];
bool flag2[5][6];
CRect m_rMainBUT[2]; // 처음 게임 선택 버튼 좌표
CRect m_rGameBUT[4]; // 로또 게임의 자동, 취소, 추첨의 버튼
CRect number[5][45]; // 숫자의 이미지 좌표
CRect result[5][6]; // 숫자 클릭시 나오는
CRect num[45]; // 각 게임 밑에 클릭한 숫자를 나타내기 위한 작은 숫자의 이미지 좌표
CRect num1[45]; // 추첨시 밑에 공에 숫자를 나타내기 위한 이미지의 좌표
CRect button[5]; // 자동버튼의 CRect
CRect button1[5]; // 취소버튼의 CRect
CRect game[5]; // 게임의 이미지
CRect chu[7]; // 추첨버튼의 좌표값
int number1[6][6]; // 숫자값의 배열
int count;
public:
afx_msg void OnClose();
LRESULT CLottoDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
BOOL CLottoDlg::PreTranslateMessage(MSG* pMsg);
void DrowBack(void);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
void CLottoDlg::Game(UINT nFlags, CPoint point);
void CLottoDlg::random(UINT nFlags, CPoint point);
//void CLottoDlg::Compare(); 숫자 비교를 위한 함수
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
};
//
#include
#pragma once
// CLottoDlg 대화 상자
class CLottoDlg : public CDialog
{
// 생성입니다.
public:
CLottoDlg(CWnd* pParent = NULL); // 표준 생성자입니다.
// 대화 상자 데이터입니다.
enum { IDD = IDD_LOTTO_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다.
public:
BOOL m_bClose;
// 구현입니다.
protected:
HICON m_hIcon;
// 생성된 메시지 맵 함수
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
public:
int m_dX; //다이얼로그 생성시 좌표를 확실히 하기 위하여
int m_dY; //다이얼로그 생성시 좌표를 확실히 하기 위하여
CBitmap Back_bitmap[7];
CBitmap Back_bitmap1[5];
CDC Back_DCmain[7];
CDC Back_DCmain1[5];
bool m_fScreen[6];
bool flag[6][45];
bool flag2[5][6];
CRect m_rMainBUT[2]; // 처음 게임 선택 버튼 좌표
CRect m_rGameBUT[4]; // 로또 게임의 자동, 취소, 추첨의 버튼
CRect number[5][45]; // 숫자의 이미지 좌표
CRect result[5][6]; // 숫자 클릭시 나오는
CRect num[45]; // 각 게임 밑에 클릭한 숫자를 나타내기 위한 작은 숫자의 이미지 좌표
CRect num1[45]; // 추첨시 밑에 공에 숫자를 나타내기 위한 이미지의 좌표
CRect button[5]; // 자동버튼의 CRect
CRect button1[5]; // 취소버튼의 CRect
CRect game[5]; // 게임의 이미지
CRect chu[7]; // 추첨버튼의 좌표값
int number1[6][6]; // 숫자값의 배열
int count;
public:
afx_msg void OnClose();
LRESULT CLottoDlg::WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
BOOL CLottoDlg::PreTranslateMessage(MSG* pMsg);
void DrowBack(void);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
void CLottoDlg::Game(UINT nFlags, CPoint point);
void CLottoDlg::random(UINT nFlags, CPoint point);
//void CLottoDlg::Compare(); 숫자 비교를 위한 함수
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
};
소개글