C++ implementation windows drawing