Mercurial > vba-linux
view src/win32/GBPrinterDlg.h @ 3:b05d00f19d80
fix some formatting
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sat, 03 Mar 2012 10:33:11 -0600 |
parents | f9f4f1b99eed |
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 > 10005 #pragma once6 #endif // _MSC_VER > 10007 // -*- C++ -*-8 // GBPrinter.h : header file9 //11 /////////////////////////////////////////////////////////////////////////////12 // GBPrinter dialog14 class GBPrinterDlg : public CDialog15 {16 private:17 u8 bitmapHeader[sizeof(BITMAPINFO)+4*sizeof(RGBQUAD)];18 BITMAPINFO *bitmap;19 u8 bitmapData[160*144];20 int scale;21 // Construction22 public:23 void processData(u8 *data);24 void saveAsPNG(const char *name);25 void saveAsBMP(const char *name);26 GBPrinterDlg(CWnd*pParent = NULL); // standard constructor28 // Dialog Data29 //{{AFX_DATA(GBPrinterDlg)30 enum { IDD = IDD_GB_PRINTER };31 int m_scale;32 //}}AFX_DATA34 // Overrides35 // ClassWizard generated virtual function overrides36 //{{AFX_VIRTUAL(GBPrinterDlg)37 protected:38 virtual void DoDataExchange(CDataExchange*pDX); // DDX/DDV support39 //}}AFX_VIRTUAL41 // Implementation42 protected:43 // Generated message map functions44 //{{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_MSG55 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_)