54 strSize.
Format(
_T(
"%d x %d"), imgXRes - xRel, imgYRes - yRel);
56 strSize.
Format(
_T(
"%d x %d"), imgXRes, imgYRes - yRel);
58 strSize.
Format(
_T(
"%d x %d"), imgXRes + xRel, imgYRes - yRel);
60 strSize.
Format(
_T(
"%d x %d"), imgXRes - xRel, imgYRes);
62 strSize.
Format(
_T(
"%d x %d"), imgXRes + xRel, imgYRes);
64 strSize.
Format(
_T(
"%d x %d"), imgXRes - xRel, imgYRes + yRel);
66 strSize.
Format(
_T(
"%d x %d"), imgXRes, imgYRes + yRel);
68 strSize.
Format(
_T(
"%d x %d"), imgXRes + xRel, imgYRes + yRel);
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSizeboxWindow sizeboxRightCenter
void __cdecl Format(UINT nFormatID,...)
void Crop(int nWidth, int nHeight, int nOffsetX=0, int nOffsetY=0)
CSizeboxWindow sizeboxCenterTop
CSizeboxWindow sizeboxRightTop
CSizeboxWindow sizeboxCenterBottom
HWND WINAPI GetCapture(void)
CSizeboxWindow sizeboxRightBottom
LRESULT OnLButtonDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSizeboxWindow sizeboxLeftCenter
LRESULT OnCaptureChanged(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnMouseMove(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HWND WINAPI SetCapture(_In_ HWND hWnd)
CSizeboxWindow sizeboxLeftBottom
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
LRESULT OnLButtonUp(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL WINAPI ReleaseCapture(void)
CSizeboxWindow sizeboxLeftTop
static int UnZoomed(int xy)