Use One-Time Initialization for glyph run caching to avoid duplicate glyph run genera...
[gdipp.git] / gdipp_demo / PaintDlg.h
blob781c966f5b3b793e202a26d7fb779a148e5b1238
1 // PaintDlg.h : interface of the CPaintDlg class
2 //
3 /////////////////////////////////////////////////////////////////////////////
5 #pragma once
7 #include "gdipp_demo/resource.h"
8 #include "gdipp_demo/demo_painter.h"
10 class CPaintDlg : public CDialogImpl<CPaintDlg>
12 public:
13 enum { IDD = IDD_PAINTDLG };
15 BEGIN_MSG_MAP(CPaintDlg)
16 MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
17 MESSAGE_HANDLER(WM_CLOSE, OnClose)
18 MESSAGE_HANDLER(WM_PAINT, OnPaint)
19 COMMAND_ID_HANDLER(ID_TOOLS_STOP, OnToolsStop)
20 END_MSG_MAP()
22 // Handler prototypes (uncomment arguments if needed):
23 // LRESULT MessageHandler(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/)
24 // LRESULT CommandHandler(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/)
25 // LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)
27 LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/);
28 LRESULT OnClose(UINT /*uMsg*/, WPARAM wParam, LPARAM /*lParam*/, BOOL& /*bHandled*/);
29 LRESULT OnPaint(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
30 LRESULT OnToolsStop(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
32 private:
33 gdipp::demo_painter _painter;