43 RECT clientRectScrollbox;
44 RECT clientRectImageArea;
48 w = clientRectImageArea.
right * 2;
49 h = clientRectImageArea.
bottom * 2;
54 w = clientRectImageArea.
right * clientRectScrollbox.
right /
w;
327 strCoord.
Format(
_T(
"%ld, %ld"), xNow, yNow);
340 xRel = (xNow < 0) ? -
start.x : xRel;
344 yRel = (yNow < 0) ? -
start.y : yRel;
366 strCoord.
Format(
_T(
"%ld, %ld"), xNow, yNow);
380 strSize.
Format(
_T(
"%ld x %ld"), xRel, yRel);
393 strSize.
Format(
_T(
"%ld x %ld"), xRel, yRel);
HPEN WINAPI CreatePen(_In_ int, _In_ int, _In_ COLORREF)
BOOL MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE)
GLubyte GLubyte GLubyte GLubyte w
BOOL WINAPI Rectangle(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int)
void endPaintingL(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
BOOL zoomTo(int, int, int)
void drawZoomFrame(int mouseX, int mouseY)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
CSizeboxWindow sizeboxRightCenter
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
BOOL WINAPI LineTo(_In_ HDC, _In_ int, _In_ int)
void __cdecl Format(UINT nFormatID,...)
GLint GLint GLint GLint GLint x
SelectionModel selectionModel
BOOL WINAPI GetCursorPos(_Out_ LPPOINT)
DWORD GetPixel(LPDIRECTDRAWSURFACE7 Surface, UINT x, UINT y)
BOOL WINAPI StretchBlt(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ DWORD)
void SetBgColor(int newColor)
LRESULT DefWindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam)
void whilePaintingL(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
LRESULT OnRButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL WINAPI TrackMouseEvent(_Inout_ LPTRACKMOUSEEVENT)
GLfloat GLfloat GLfloat GLfloat h
BOOL WINAPI MoveToEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
CSizeboxWindow sizeboxCenterTop
CSizeboxWindow sizeboxRightTop
CSizeboxWindow sizeboxCenterBottom
void startPaintingL(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
int WINAPI SetROP2(_In_ HDC, _In_ int)
static int rop(int rop, int src, int dst)
BOOL GetClientRect(LPRECT lpRect) const
HWND WINAPI GetCapture(void)
CMiniatureWindow miniature
CSizeboxWindow sizeboxRightBottom
SHORT WINAPI GetKeyState(_In_ int)
LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void updateCanvasAndScrollbars()
BOOL ScreenToClient(LPPOINT lpPoint) const
struct tagTRACKMOUSEEVENT TRACKMOUSEEVENT
CSizeboxWindow sizeboxLeftCenter
SHORT WINAPI GetAsyncKeyState(_In_ int)
void SetFgColor(int newColor)
LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HBRUSH WINAPI CreateBrushIndirect(_In_ const LOGBRUSH *plb)
LRESULT OnImageModelImageChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSizeboxWindow sizeboxLeftBottom
PaletteModel paletteModel
LRESULT OnImageModelDimensionsChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
GLint GLint GLint GLint GLint GLint y
LRESULT OnMouseLeave(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CScrollboxWindow scrollboxWindow
BOOL Invalidate(BOOL bErase=TRUE)
LRESULT OnPaint(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL WINAPI ReleaseCapture(void)
CSizeboxWindow sizeboxLeftTop
void startPaintingR(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnRButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
void endPaintingR(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
void ResetToPrevious(void)
void whilePaintingR(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
CSelectionWindow selectionWindow
LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)