|
// HexagonDlg.h : header file
//
#pragma once
// CHexagonDlg dialog
class CHexagonDlg : public CDialog
{
// Construction
public:
CHexagonDlg(CWnd* pParent = NULL); // standard constructor
private:
bool GetEncoderClsid(const WCHAR* format, CLSID* pClsid);
bool DrawAndSave();
Gdiplus::Bitmap* Draw(Gdiplus::PointF pts[3]);
void DrawAllHexagonsFloat();
void DrawCanvasFloat(Gdiplus::Bitmap* canvas, Gdiplus::Bitmap* pMask, float val);
void DrawAllHexagonsUInt();
void DrawCanvasUInt(Gdiplus::Bitmap* canvas, Gdiplus::Bitmap* pMask, UINT val);
// Dialog Data
enum { IDD = IDD_HEXAGON_DIALOG };
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.
In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed
here.