21 zoomTo(
int newZoom,
int mouseX,
int mouseY)
23 RECT clientRectScrollbox;
24 RECT clientRectImageArea;
34 w = clientRectImageArea.
right * clientRectScrollbox.
right /
w;
80 int statusBarBorders[3];
82 int statusBarHeight = statusBarRect0.bottom - statusBarRect0.top + statusBarBorders[1];
109 CPath pathFileName(newfilepathname);
133 TCHAR programname[20];
134 TCHAR shouldEnlargePromptText[100];
144 shouldEnlarge =
FALSE;
153 if (
width > curWidth)
180 drophandle = (HDROP)
wParam;
392 TCHAR infotitle[100];
#define IDM_IMAGEROTATEMIRROR
void SaveImage(LPTSTR lpFileName)
GLint GLint GLsizei width
#define WM_SYSCOLORCHANGE
#define IDM_EDITPASTEFROM
#define IDM_IMAGEINVERTCOLORS
CToolBox toolBoxContainer
void RotateNTimes90Degrees(int iN)
BOOL MoveWindow(int x, int y, int nWidth, int nHeight, BOOL bRepaint=TRUE)
GLubyte GLubyte GLubyte GLubyte w
void SaveDIBToFile(HBITMAP hBitmap, LPTSTR FileName, HDC hDC, LPSYSTEMTIME time, int *size, int hRes, int vRes)
#define IDM_EDITSELECTALL
void endPaintingL(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
_TCHAR * _tcsncpy(_TCHAR *dst, const _TCHAR *src, size_t n)
#define IDM_VIEWCOLORPALETTE
BOOL CompactPathEx(UINT nMaxChars, DWORD dwFlags=0)
CSizeboxWindow sizeboxRightCenter
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
#define IDM_COLORSEDITPALETTE
void __cdecl Format(UINT nFormatID,...)
int GetDIBHeight(HBITMAP hBitmap)
#define IDM_VIEWSTATUSBAR
SelectionModel selectionModel
#define IDM_COLORSOLDPALETTE
static void SetWallpaper(LPCTSTR szFileName, WallpaperStyle style)
BOOL SetWindowText(LPCTSTR lpszString)
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
static VOID NTAPI BitBlt(IN ULONG Left, IN ULONG Top, IN ULONG Width, IN ULONG Height, IN PUCHAR Buffer, IN ULONG BitsPerPixel, IN ULONG Delta)
HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE)
#define IDM_IMAGEDELETEIMAGE
void whilePaintingL(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
#define IDM_FILEPAGESETUP
LRESULT OnGetMinMaxInfo(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
GLfloat GLfloat GLfloat GLfloat h
void Crop(int nWidth, int nHeight, int nOffsetX=0, int nOffsetY=0)
void SetMostRecentFile(LPCTSTR szPathName)
#define IDM_IMAGEATTRIBUTES
void LoadDIBFromFile(HBITMAP *hBitmap, LPCTSTR name, LPSYSTEMTIME time, int *size, int *hRes, int *vRes)
int GetDIBWidth(HBITMAP hBitmap)
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSizeboxWindow sizeboxCenterTop
#define PD_USEDEVMODECOPIESANDCOLLATE
CSizeboxWindow sizeboxRightTop
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
CMirrorRotateDialog mirrorRotateDialog
CSizeboxWindow sizeboxCenterBottom
void startPaintingL(HDC hdc, LONG x, LONG y, COLORREF fg, COLORREF bg)
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
#define IDM_FILEASWALLPAPERCENTERED
#define IDS_ENLARGEPROMPTTEXT
void saveImage(BOOL overwrite)
#define IDM_VIEWFULLSCREEN
BOOL GetClientRect(LPRECT lpRect) const
HWND WINAPI GetCapture(void)
HANDLE WINAPI CopyImage(_In_ HANDLE, _In_ UINT, _In_ int, _In_ int, _In_ UINT)
CMiniatureWindow miniature
#define IDM_HELPHELPTOPICS
struct tagMINMAXINFO * LPMINMAXINFO
CSizeboxWindow sizeboxRightBottom
CStretchSkewDialog stretchSkewDialog
#define IDS_SAVEPROMPTTEXT
void SelectPalette(int nPalette)
LRESULT OnDropFiles(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
WINDOWPLACEMENT WindowPlacement
void Clear(COLORREF color=0x00ffffff)
BOOL WINAPI EmptyClipboard(void)
#define IDM_FILEASWALLPAPERSTRETCHED
#define IDM_FILEMOSTRECENTLYUSEDFILE
void InsertSelectionFromHBITMAP(HBITMAP bitmap, HWND window)
BOOL GetWindowPlacement(WINDOWPLACEMENT *lpwndpl) const
void StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSkewDegX=0, int nSkewDegY=0)
void RotateNTimes90Degrees(int iN)
#define IDM_FORMATICONBAR
CFullscreenWindow fullscreenWindow
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
BOOL WINAPI CloseClipboard(void)
#define IDM_EDITINVERTSELECTION
CAttributesDialog attributesDialog
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void alignChildrenToMainWindow()
LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CSizeboxWindow sizeboxLeftCenter
void SetFgColor(int newColor)
#define IDM_FILEASWALLPAPERPLANE
HMENU WINAPI GetSubMenu(_In_ HMENU, _In_ int)
static IHTMLWindow2 * window
CPaletteWindow paletteWindow
#define IDM_IMAGESTRETCHSKEW
GLint GLint GLsizei GLsizei height
void ForceRefreshSelectionContents()
void UpdateApplicationProperties(HBITMAP bitmap, LPCTSTR newfilepathname)
#define IDM_IMAGEDRAWOPAQUE
#define IDM_EDITDELETESELECTION
#define IDM_COLORSMODERNPALETTE
CSizeboxWindow sizeboxLeftBottom
BOOL ShowWindow(int nCmdShow)
PaletteModel paletteModel
BOOL WINAPI DeleteDC(_In_ HDC)
void InsertFromHBITMAP(HBITMAP hBm)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
HANDLE WINAPI GetClipboardData(_In_ UINT)
CScrollboxWindow scrollboxWindow
BOOL Invalidate(BOOL bErase=TRUE)
CSizeboxWindow sizeboxLeftTop
BOOL zoomTo(int newZoom, int mouseX, int mouseY)
void WINAPI DragFinish(HDROP h)
LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT SendMessage(UINT message, WPARAM wParam=0, LPARAM lParam=0)
LRESULT OnSetCursor(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
BOOL LoadString(_In_ UINT nID)
LRESULT OnInitMenuPopup(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
CTextEditWindow textEditWindow
RegistrySettings registrySettings
int MessageBox(LPCTSTR lpszText, LPCTSTR lpszCaption=NULL, UINT nType=MB_OK)
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
#define IDM_VIEWSHOWMINIATURE
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
BOOL IsWindowVisible() const
CSelectionWindow selectionWindow