SOL9 2.0 Class: PaintDC

 SOL9 C++ Class Library  SOL9 Samples  SOL9 Tutorial  SOL9 FAQ  SOL9 ClassTree 

Source code

/*
 * 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); 
    }
};

}



Last modified: 19 Dec 2009

Copyright (c) 2009 Antillia.com ALL RIGHTS RESERVED.