39 LPTSTR lpCmdLine,
int nCmdShow)
69 530, 5, 130, 150, HWnd,
75 530, 5+170, 130, 150, HWnd,
83 reinterpret_cast<LPARAM>(
"Zoom 25%"));
85 reinterpret_cast<LPARAM>(
"Zoom 50%"));
87 reinterpret_cast<LPARAM>(
"Zoom 75%"));
89 reinterpret_cast<LPARAM>(
"Zoom 100%"));
91 reinterpret_cast<LPARAM>(
"Zoom 125%"));
93 reinterpret_cast<LPARAM>(
"Zoom 150%"));
95 reinterpret_cast<LPARAM>(
"Zoom 200%"));
97 reinterpret_cast<LPARAM>(
"Zoom 300%"));
100 reinterpret_cast<LPARAM>(
"Zoom 25%"));
102 reinterpret_cast<LPARAM>(
"Zoom 50%"));
104 reinterpret_cast<LPARAM>(
"Zoom 75%"));
106 reinterpret_cast<LPARAM>(
"Zoom 100%"));
108 reinterpret_cast<LPARAM>(
"Zoom 125%"));
110 reinterpret_cast<LPARAM>(
"Zoom 150%"));
112 reinterpret_cast<LPARAM>(
"Zoom 200%"));
114 reinterpret_cast<LPARAM>(
"Zoom 300%"));
171 static_cast<HBITMAP>(
193 HOldBmp = static_cast<HBITMAP>(
199 bbits =
new char[
bmp.bmHeight*
bmp.bmWidthBytes*(
bmp.bmBitsPixel / 8)];
246 const int new_width =
248 const int new_height =
315 bmp.bmWidth,
bmp.bmHeight,
347 bmp.bmWidth,
bmp.bmHeight,
int WINAPI CombineRgn(_In_opt_ HRGN hrgnDest, _In_opt_ HRGN hrgnSrc1, _In_opt_ HRGN hrgnSrc2, _In_ int fnCombineMode)
int WINAPI StretchDIBits(_In_ HDC, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_ int, _In_opt_ const VOID *, _In_ const BITMAPINFO *, _In_ UINT, _In_ DWORD)
BOOL WINAPI RedrawWindow(_In_opt_ HWND, _In_opt_ LPCRECT, _In_opt_ HRGN, _In_ UINT)
BOOL WINAPI TranslateMessage(_In_ const MSG *)
BITMAPINFOHEADER bmiHeader
ACPI_SIZE strlen(const char *String)
struct tagBITMAPINFOHEADER BITMAPINFOHEADER
return static_cast< int >(global)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
HRGN WINAPI CreateRectRgnIndirect(_In_ LPCRECT)
BOOL WINAPI UpdateWindow(_In_ HWND)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
BOOL WINAPI DeleteObject(_In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI EndPaint(_In_ HWND, _In_ const PAINTSTRUCT *)
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)
_Check_return_opt_ _CRTIMP size_t __cdecl fread(_Out_writes_bytes_(_ElementSize *_Count) void *_DstBuf, _In_ size_t _ElementSize, _In_ size_t _Count, _Inout_ FILE *_File)
HDC WINAPI BeginPaint(_In_ HWND, _Out_ LPPAINTSTRUCT)
_Check_return_opt_ _CRTIMP int __cdecl fseek(_Inout_ FILE *_File, _In_ long _Offset, _In_ int _Origin)
LRESULT CALLBACK MainWndProc(HWND HWnd, UINT Msg, WPARAM WParam, LPARAM LParam)
BOOL WINAPI InvalidateRgn(_In_ HWND, _In_opt_ HRGN, _In_ BOOL)
const char * WndClassName
BOOL WINAPI InvalidateRect(_In_opt_ HWND, _In_opt_ LPCRECT, _In_ BOOL)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
int WINAPI SetStretchBltMode(_In_ HDC, _In_ int)
BOOL WINAPI DeleteDC(_In_ HDC)
#define WS_OVERLAPPEDWINDOW
int APIENTRY WinMain(HINSTANCE HInstance, HINSTANCE HPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
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)