?? goldview.h
字號:
#ifndef GOLD_VIEW_HEAD_FILE
#define GOLD_VIEW_HEAD_FILE
#pragma once
#include "Stdafx.h"
//////////////////////////////////////////////////////////////////////////
//籌碼視圖類
class CGoldView
{
//變量定義
public:
LONG m_lGold; //籌碼數目
LONG m_lMaxLayer; //最大層數
LONG m_lGoldCount[6]; //籌碼數目
//輔助變量
protected:
static bool m_bInit; //初始標志
static CSkinImage m_ImageGold; //籌碼圖片
//函數定義
public:
//構造函數
CGoldView();
//析構函數
virtual ~CGoldView();
//功能函數
public:
//設置籌碼
void SetGold(LONG lGold);
//獲取籌碼
LONG GetGold() { return m_lGold; };
//設置層數
void SetMaxGoldLayer(LONG lMaxLayer);
//繪畫籌碼
void DrawGoldView(CDC * pDC, int nXPos, int nYPos);
//內部函數
private:
//調整籌碼層
void RectifyGoldLayer();
//整性變字符
LPCTSTR GetGlodString(LONG lGold, TCHAR szString[]);
};
//////////////////////////////////////////////////////////////////////////
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -