void DrawSelectionStretched(HDC hDCImage)
LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
static int Zoomed(int xy)
GLubyte GLubyte GLubyte GLubyte w
LRESULT OnToolsModelSettingsChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define ACTION_RESIZE_TOP_LEFT
LRESULT OnMouseWheel(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnSelectionModelRefreshNeeded(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSizeboxWindow sizeboxRightCenter
void __cdecl Format(UINT nFormatID,...)
#define ACTION_RESIZE_RIGHT
SelectionModel selectionModel
LRESULT OnToolsModelZoomChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LONG GetDestRectWidth() const
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
DWORD WINAPI GetSysColor(_In_ int)
COLORREF GetBgColor() const
GLfloat GLfloat GLfloat GLfloat h
BOOL InvalidateRect(LPCRECT lpRect, BOOL bErase=TRUE)
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define ACTION_RESIZE_BOTTOM_LEFT
CSizeboxWindow sizeboxCenterTop
CSizeboxWindow sizeboxRightTop
CSizeboxWindow sizeboxCenterBottom
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
#define CWP_SKIPINVISIBLE
HWND WINAPI GetCapture(void)
CSizeboxWindow sizeboxRightBottom
#define ACTION_RESIZE_TOP_RIGHT
CScrollboxWindow scrlClientWindow
void ModifyDestRect(POINT &ptDelta, int iAction)
void SelectionFrame(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, COLORREF system_selection_color)
#define ACTION_RESIZE_TOP
LRESULT OnPaletteModelColorChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HWND WINAPI ChildWindowFromPointEx(_In_ HWND, _In_ POINT, _In_ UINT)
#define ACTION_RESIZE_LEFT
CSizeboxWindow sizeboxLeftCenter
void ForceRefreshSelectionContents()
LONG GetDestRectHeight() const
LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HWND WINAPI GetParent(_In_ HWND)
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HWND WINAPI SetCapture(_In_ HWND hWnd)
CSizeboxWindow sizeboxLeftBottom
PaletteModel paletteModel
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
LRESULT OnEraseBkgnd(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void DrawSelection(HDC hDCImage, COLORREF crBg=0, BOOL bBgTransparent=FALSE)
static const LPCTSTR m_lpszCursorLUT[9]
int IdentifyCorner(int iXPos, int iYPos, int iWidth, int iHeight)
void DrawSelectionBackground(COLORREF rgbBG)
BOOL WINAPI ReleaseCapture(void)
CSizeboxWindow sizeboxLeftTop
void ScaleContentsToFit()
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
BOOL WINAPI IsWindowVisible(_In_ HWND)
#define ACTION_RESIZE_BOTTOM
#define ACTION_RESIZE_BOTTOM_RIGHT
void Undo(BOOL bClearRedo=FALSE)
LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void ResetToPrevious(void)
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSelectionWindow selectionWindow
static int UnZoomed(int xy)