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