Avionics
Dropship Simulator
Printer.h
Go to the documentation of this file.
1 
4 #pragma once
5 
6 #include "../Bus.h"
7 
8 //#include <Winspool.h>
9 //#include <CommDlg.h>
10 //#include <fstream>
11 
12 namespace Devices
13 {
14  class Printer
15  {
16  private:
17  Logger* logger = nullptr;
18  Bus* bus = nullptr; // needs a pointer because it is two-way (digital in or sensor can add, commands removed can trigger digital out)
19  HWND hWnd = nullptr;
20 
21  HBITMAP hBitmap = nullptr;
22  BITMAP bitmap;
23  int bxWidth = 0, bxHeight = 0, flag = 0;
24  HDC hdc = nullptr, hdcMem = nullptr;
25  HMENU menu = nullptr;
26  HPALETTE hpal = nullptr;
27  int cxsize = 0, cxpage = 0;
28  int cysize = 0, cypage = 0;
29 
30 
31  static HDC GetPrinterDC();
32 
33 
34  public:
35  //Printer() {};
36  void Initialize(Logger* logger, Bus* prmBus, HWND hWnd);
37  void FrameMove();
38  //~Printer() {};
39  };
40 }
HBITMAP hBitmap
Definition: Printer.h:21
BITMAP bitmap
Definition: Printer.h:22
Definition: Logger.h:5
HPALETTE hpal
Definition: Printer.h:26
static HDC GetPrinterDC()
Definition: Printer.cpp:166
okay, the portable keyboard numbers don&#39;t work like the outside keypad because the outside keypad is ...
Definition: Analog.cpp:3
Definition: Bus.h:12
void FrameMove()
Definition: Printer.cpp:14
void Initialize(Logger *logger, Bus *prmBus, HWND hWnd)
Definition: Printer.cpp:7
Logger * logger
Definition: Printer.h:17