3 #include "direct2d/D2ChannelRender.h"
10 :
public CWindowImpl<CChannelView> {
35 int OnCreate(LPCREATESTRUCT lpCreateStruct);
44 void OnSize(UINT , CSize size);
48 LRESULT
OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
65 void ResizeContent(
const uint32_t& _xres,
const uint32_t& _yres);
ID2D1Bitmap * GetBitmap()
void ResizeContent(const uint32_t &_xres, const uint32_t &_yres)
Resizes the bitmap of the renderer.
LRESULT OnMouseMove(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
Handles WM_MOUSEMOVE messages, just passes them on to ChannelFrame (the parent) via user-defined mess...
void OnPaint(CDCHandle)
Calls renderer and validates rect.
CChannelView is just a dumb holder for the renderer and takes care of window resizes etc...
Handles all Direct2D rendering in a CChannelView.
void OnDisplayChange(UINT, CSize)
Calls renderer.
virtual void UpdateScaleText(const std::wstring &_text)
Update the scale text.
int OnCreate(LPCREATESTRUCT lpCreateStruct)
Creates the renderer.
void Render()
Calls renderer.Render.
LRESULT OnEraseBkgnd(HDC wParam)
avoids flickering during resize
BOOL PreTranslateMessage(MSG *pMsg)
Does nothing (-> disable default handling)
D2D1_SIZE_F GetRendererSize() const
d2d::D2ChannelRender renderer
the Direct2D renderer class
void OnSize(UINT, CSize size)
Calls renderer's resize.
DECLARE_WND_CLASS_EX(nullptr, CS_HREDRAW|CS_VREDRAW,-1)
Set background brush to -1, avoids erasure of background (similar effect as OnEraseBkgnd below...