| SOL9 2.0 Class: WindowDC |
| SOL9 C++ Class Library | SOL9 Samples | SOL9 Tutorial | SOL9 FAQ | SOL9 ClassTree |
/*
* WindowDC.h
* Copyright (c) 2011 Antillia.com TOSHIYUKI ARAI. ALL RIGHTS RESERVED.
*/
// SOL++2000
#pragma once
#include <sol\View.h>
#include <sol\DC.h>
namespace SOL {
class WindowDC :public DC {
HWND hwnd;
public:
WindowDC(View* view) {
hwnd = view->getWindow();
Set(GetWindowDC(hwnd));
}
~WindowDC() {
ReleaseDC(hwnd, get());
}
};
}
|