1 // PaintDlg.h : interface of the CPaintDlg class
3 /////////////////////////////////////////////////////////////////////////////
7 #include "gdipp_demo/resource.h"
8 #include "gdipp_demo/demo_painter.h"
10 class CPaintDlg
: public CDialogImpl
<CPaintDlg
>
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
)
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*/);
33 gdipp::demo_painter _painter
;