【文件属性】:
文件名称:mfc插入位图
文件大小:418B
文件格式:TXT
更新时间:2022-03-11 15:18:11
VS2017
mfc插入位图
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:
afx_msg void OnBnClicked_BeginGame();
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
void PaintIcon();
void PaintImage(int ID, int xPos, int yPos, int Width, int Height, COLORREF color);