25 ColorKeyedMaskBlt(
HDC hdcDest,
int nXDest,
int nYDest,
int nWidth,
int nHeight,
HDC hdcSrc,
int nXSrc,
int nYSrc,
HBITMAP hbmMask,
int xMask,
int yMask,
DWORD dwRop,
COLORREF keyColor)
43 BitBlt(hTempDC2, 0, 0, nWidth, nHeight, hTempDC, 0, 0,
SRCCOPY);
45 BitBlt(hTempDC2, 0, 0, nWidth, nHeight, hTempDC, xMask, yMask,
SRCAND);
46 MaskBlt(hdcDest, nXDest, nYDest, nWidth, nHeight,
hdcSrc, nXSrc, nYSrc, hTempMask, xMask, yMask, dwRop);
72 if ((iXPos < iWidth / 2 + 2) && (iXPos >= iWidth / 2 - 1))
74 if (iXPos >= iWidth - 3)
77 if ((iYPos < iHeight / 2 + 2) && (iYPos >= iHeight / 2 - 1))
81 if (iXPos >= iWidth - 3)
84 if (iYPos >= iHeight - 3)
88 if ((iXPos < iWidth / 2 + 2) && (iXPos >= iWidth / 2 - 1))
90 if (iXPos >= iWidth - 3)
void DrawSelectionStretched(HDC hDCImage)
LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
GLubyte GLubyte GLubyte GLubyte w
LRESULT OnToolsModelSettingsChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define ACTION_RESIZE_TOP_LEFT
HDC WINAPI GetDC(_In_opt_ HWND)
HBITMAP WINAPI CreateCompatibleBitmap(_In_ HDC hdc, _In_ INT cx, _In_ INT cy)
LRESULT OnSelectionModelRefreshNeeded(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
void __cdecl Format(UINT nFormatID,...)
#define ACTION_RESIZE_RIGHT
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
SelectionModel selectionModel
DWORD m_dwSystemSelectionColor
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
DWORD WINAPI GetSysColor(_In_ int)
GLfloat GLfloat GLfloat GLfloat h
BOOL InvalidateRect(LPCRECT lpRect, BOOL bErase=TRUE)
BOOL WINAPI PatBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define ACTION_RESIZE_BOTTOM_LEFT
HWND WINAPI GetCapture(void)
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
#define ACTION_RESIZE_TOP_RIGHT
CScrollboxWindow scrlClientWindow
void ModifyDestRect(POINT &ptDelta, int iAction)
#define ACTION_RESIZE_TOP
LRESULT OnPaletteModelColorChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define ACTION_RESIZE_LEFT
void ForceRefreshSelectionContents()
LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HWND WINAPI SetCapture(_In_ HWND hWnd)
PaletteModel paletteModel
BOOL WINAPI DeleteDC(_In_ HDC)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
LRESULT OnEraseBkgnd(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
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)
BOOL WINAPI ReleaseCapture(void)
void ScaleContentsToFit()
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
#define ACTION_RESIZE_BOTTOM
BOOL WINAPI MaskBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ HDC, _In_ int, _In_ int, _In_ HBITMAP, _In_ int, _In_ int, _In_ DWORD)
void DrawTextToolText(HDC hDCImage, COLORREF crFg, COLORREF crBg, BOOL bBgTransparent=FALSE)
#define ACTION_RESIZE_BOTTOM_RIGHT
LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL ColorKeyedMaskBlt(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, HDC hdcSrc, int nXSrc, int nYSrc, HBITMAP hbmMask, int xMask, int yMask, DWORD dwRop, COLORREF keyColor)
void ResetToPrevious(void)
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void SelectionFrame(HDC hdc, LONG x1, LONG y1, LONG x2, LONG y2, DWORD system_selection_color)
static VOID NTAPI BitBlt(_In_ ULONG Left, _In_ ULONG Top, _In_ ULONG Width, _In_ ULONG Height, _In_reads_bytes_(Delta *Height) PUCHAR Buffer, _In_ ULONG BitsPerPixel, _In_ ULONG Delta)
CSelectionWindow selectionWindow
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)