view src/win32/GBPrinterDlg.h @ 1:f9f4f1b99eed

importing src directory
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Mar 2012 10:31:27 -0600
parents
children
line wrap: on
line source
1 #if !defined(AFX_GBPRINTER_H__3180CC5A_1F9D_47E5_B044_407442CB40A4__INCLUDED_)
2 #define AFX_GBPRINTER_H__3180CC5A_1F9D_47E5_B044_407442CB40A4__INCLUDED_
4 #if _MSC_VER > 1000
5 #pragma once
6 #endif // _MSC_VER > 1000
7 // -*- C++ -*-
8 // GBPrinter.h : header file
9 //
11 /////////////////////////////////////////////////////////////////////////////
12 // GBPrinter dialog
14 class GBPrinterDlg : public CDialog
15 {
16 private:
17 u8 bitmapHeader[sizeof(BITMAPINFO)+4*sizeof(RGBQUAD)];
18 BITMAPINFO *bitmap;
19 u8 bitmapData[160*144];
20 int scale;
21 // Construction
22 public:
23 void processData(u8 *data);
24 void saveAsPNG(const char *name);
25 void saveAsBMP(const char *name);
26 GBPrinterDlg(CWnd*pParent = NULL); // standard constructor
28 // Dialog Data
29 //{{AFX_DATA(GBPrinterDlg)
30 enum { IDD = IDD_GB_PRINTER };
31 int m_scale;
32 //}}AFX_DATA
34 // Overrides
35 // ClassWizard generated virtual function overrides
36 //{{AFX_VIRTUAL(GBPrinterDlg)
37 protected:
38 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support
39 //}}AFX_VIRTUAL
41 // Implementation
42 protected:
43 // Generated message map functions
44 //{{AFX_MSG(GBPrinterDlg)
45 afx_msg void OnSave();
46 afx_msg void OnPrint();
47 virtual BOOL OnInitDialog();
48 afx_msg void OnOk();
49 afx_msg void On1x();
50 afx_msg void On2x();
51 afx_msg void On3x();
52 afx_msg void On4x();
53 afx_msg void OnPaint();
54 //}}AFX_MSG
55 DECLARE_MESSAGE_MAP()
56 };
58 //{{AFX_INSERT_LOCATION}}
59 // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
61 #endif // !defined(AFX_GBPRINTER_H__3180CC5A_1F9D_47E5_B044_407442CB40A4__INCLUDED_)