44zoomTo(
int newZoom,
int mouseX,
int mouseY)
46 RECT clientRectScrollbox;
47 RECT clientRectImageArea;
50 imageArea.GetClientRect(&clientRectImageArea);
57 w = clientRectImageArea.
right * clientRectScrollbox.
right /
w;
77 RECT rcSpace = clientRect;
148 TCHAR programname[20];
149 TCHAR shouldEnlargePromptText[100];
159 shouldEnlarge =
FALSE;
168 if (
width > curWidth)
212#ifndef SPI_GETWHEELSCROLLCHARS
213 #define SPI_GETWHEELSCROLLCHARS 0x006C
216 for (
UINT i = 0;
i < nCount; ++
i)
227 for (
UINT i = 0;
i < nCount; ++
i)
244 HDROP hDrop = (HDROP)
wParam;
346#define MAX_RECENT_PATHNAME_DISPLAY 30
347 CPath pathFile(strFile);
355 INT iMenuItem = (cMenuItems - 2) + iItem;
478 TCHAR infotitle[100];
#define ATLTRACE(format,...)
BOOL zoomTo(int newZoom, int mouseX, int mouseY)
static int Zoomed(int xy)
CAttributesDialog attributesDialog
CStretchSkewDialog stretchSkewDialog
CMirrorRotateDialog mirrorRotateDialog
static HBITMAP CopyDIBImage(HBITMAP hbm, INT cx=0, INT cy=0)
#define IDS_SAVEPROMPTTEXT
#define IDM_EDITSELECTALL
#define IDM_VIEWSTATUSBAR
#define IDM_EDITDELETESELECTION
#define IDM_COLORSOLDPALETTE
#define IDM_FILEPAGESETUP
#define IDM_COLORSEDITPALETTE
#define IDM_COLORSMODERNPALETTE
#define IDM_EDITPASTEFROM
#define IDM_VIEWSHOWMINIATURE
#define IDM_FILEASWALLPAPERPLANE
#define IDM_FORMATICONBAR
#define IDM_EDITINVERTSELECTION
#define IDM_IMAGEINVERTCOLORS
#define IDM_IMAGEATTRIBUTES
#define IDM_FILEMOSTRECENTLYUSEDFILE
#define IDM_VIEWFULLSCREEN
#define IDM_IMAGESTRETCHSKEW
#define IDM_FILEASWALLPAPERCENTERED
#define IDM_HELPHELPTOPICS
#define IDM_IMAGEDRAWOPAQUE
#define IDM_VIEWCOLORPALETTE
#define IDM_IMAGEDELETEIMAGE
#define IDS_ENLARGEPROMPTTEXT
#define IDM_IMAGEROTATEMIRROR
#define IDM_FILEASWALLPAPERSTRETCHED
BOOL CompactPathEx(UINT nMaxChars, DWORD dwFlags=0)
BOOL LoadString(_In_ UINT nID)
void __cdecl Format(UINT nFormatID,...)
BOOL IsWindowVisible() const
LRESULT OnSysColorChange(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void InsertSelectionFromHBITMAP(HBITMAP bitmap, HWND window)
void alignChildrenToMainWindow()
LRESULT OnKeyDown(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnDropFiles(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void ProcessFileMenu(HMENU hPopupMenu)
LRESULT OnSize(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnClose(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnInitMenuPopup(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnCommand(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnGetMinMaxInfo(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnMouseWheel(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void saveImage(BOOL overwrite)
LRESULT OnCreate(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
LRESULT OnDestroy(UINT nMsg, WPARAM wParam, LPARAM lParam, BOOL &bHandled)
void ForceRefreshSelectionContents()
BOOL HasRedoSteps() const
BOOL HasUndoSteps() const
void SaveImage(LPTSTR lpFileName)
BOOL IsImageSaved() const
void Undo(BOOL bClearRedo=FALSE)
void RotateNTimes90Degrees(int iN)
void Crop(int nWidth, int nHeight, int nOffsetX=0, int nOffsetY=0)
void StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSkewDegX=0, int nSkewDegY=0)
PAL_TYPE SelectedPalette()
COLORREF GetBgColor() const
void SetFgColor(COLORREF newColor)
void SelectPalette(PAL_TYPE nPalette)
static void SetWallpaper(LPCTSTR szFileName, WallpaperStyle style)
WINDOWPLACEMENT WindowPlacement
CString strFiles[MAX_RECENT_FILES]
void InsertFromHBITMAP(HBITMAP hBm, INT x=0, INT y=0)
void RotateNTimes90Degrees(int iN)
HBITMAP GetBitmap() const
void StretchSkew(int nStretchPercentX, int nStretchPercentY, int nSkewDegX=0, int nSkewDegY=0)
#define PD_USEDEVMODECOPIESANDCOLLATE
HBITMAP SetBitmapAndInfo(HBITMAP hBitmap, LPCTSTR name, DWORD dwFileSize, BOOL isFile)
BOOL SaveDIBToFile(HBITMAP hBitmap, LPTSTR FileName, HDC hDC)
int GetDIBHeight(HBITMAP hBitmap)
HBITMAP DoLoadImageFile(HWND hwnd, LPCTSTR name, BOOL fIsMainFile)
int GetDIBWidth(HBITMAP hBitmap)
#define GetProcAddress(x, y)
UINT WINAPI GetSystemDirectoryW(OUT LPWSTR lpBuffer, IN UINT uSize)
void WINAPI DragFinish(HDROP h)
LPWSTR WINAPI PathFindExtensionW(LPCWSTR lpszPath)
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)
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
GLint GLint GLsizei GLsizei height
GLint GLint GLsizei width
GLubyte GLubyte GLubyte GLubyte w
GLfloat GLfloat GLfloat GLfloat h
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
CMiniatureWindow miniature
CSelectionWindow selectionWindow
RegistrySettings registrySettings
CPaletteWindow paletteWindow
CFullscreenWindow fullscreenWindow
SelectionModel selectionModel
CToolBox toolBoxContainer
CCanvasWindow canvasWindow
CTextEditWindow textEditWindow
PaletteModel paletteModel
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
static HANDLE ULONG_PTR dwData
static IHTMLWindow2 * window
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
_CRTIMP wchar_t *__cdecl wcscat(_Inout_updates_z_(_String_length_(_Dest)+_String_length_(_Source)+1) wchar_t *_Dest, _In_z_ const wchar_t *_Source)
BOOL WINAPI DeleteDC(_In_ HDC)
HWND(WINAPI * FN_HtmlHelpW)(HWND, LPCWSTR, UINT, DWORD_PTR)
#define MAX_RECENT_PATHNAME_DISPLAY
BOOL zoomTo(int newZoom, int mouseX, int mouseY)
static HINSTANCE s_hHHCTRL_OCX
static FN_HtmlHelpW s_pHtmlHelpW
static HWND DoHtmlHelpW(HWND hwndCaller, LPCWSTR pszFile, UINT uCommand, DWORD_PTR dwData)
#define SPI_GETWHEELSCROLLCHARS
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
int WINAPI GetMenuItemCount(_In_opt_ HMENU)
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
BOOL WINAPI GetWindowPlacement(_In_ HWND, _Inout_ WINDOWPLACEMENT *)
BOOL WINAPI GetWindowRect(_In_ HWND, _Out_ LPRECT)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
HANDLE WINAPI SetClipboardData(_In_ UINT, _In_opt_ HANDLE)
BOOL WINAPI CloseClipboard(void)
#define SW_SHOWNOACTIVATE
HWND WINAPI GetCapture(void)
BOOL WINAPI EndDeferWindowPos(_In_ HDWP)
#define WM_SYSCOLORCHANGE
HANDLE WINAPI GetClipboardData(_In_ UINT)
DWORD WINAPI CheckMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI GetClientRect(_In_ HWND, _Out_ LPRECT)
BOOL WINAPI RemoveMenu(_In_ HMENU, _In_ UINT, _In_ UINT)
BOOL WINAPI EmptyClipboard(void)
BOOL WINAPI SystemParametersInfoW(_In_ UINT uiAction, _In_ UINT uiParam, _Inout_opt_ PVOID pvParam, _In_ UINT fWinIni)
struct tagMINMAXINFO * LPMINMAXINFO
HDWP WINAPI DeferWindowPos(_In_ HDWP, _In_ HWND, _In_opt_ HWND, _In_ int, _In_ int, _In_ int, _In_ int, _In_ UINT)
SHORT WINAPI GetAsyncKeyState(_In_ int)
struct _WINDOWPLACEMENT WINDOWPLACEMENT
BOOL WINAPI EnableMenuItem(_In_ HMENU, _In_ UINT, _In_ UINT)
HDWP WINAPI BeginDeferWindowPos(_In_ int)