| SOL9 2.0 Class: PaintDC |
| SOL9 C++ Class Library | SOL9 Samples | SOL9 Tutorial | SOL9 FAQ | SOL9 ClassTree |
/*
* PaintDC.h
* Copyright (c) 2009 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL++2000
// 2000.02.18
#pragma once
#include <sol\View.h>
#include <sol\DC.h>
namespace SOL {
class PaintDC :public DC {
PAINTSTRUCT ps;
HWND hwnd;
public:
PaintDC(View* view) {
hwnd = view -> getWindow();
set(BeginPaint(hwnd, &ps));
}
~PaintDC() {
EndPaint(hwnd, &ps);
}
};
}
|