ReactOS 0.4.16-dev-725-g22577ae
|
#include "magnifier.h"
#include <winbase.h>
#include <winuser.h>
#include <wingdi.h>
#include <winnls.h>
#include <commctrl.h>
#include <shellapi.h>
#include <windowsx.h>
#include <stdlib.h>
#include <tchar.h>
#include "resource.h"
Go to the source code of this file.
Macros | |
#define | APPMSG_NOTIFYICON (WM_APP+1) |
#define | APPMSG_APPBAR (WM_APP+2) |
#define | MAX_LOADSTRING 100 |
#define | TIMER_SPEED 1 |
#define | REPAINT_SPEED 100 |
#define | PointsAreEqual(pt1, pt2) (((pt1).x == (pt2).x) && ((pt1).y == (pt2).y)) |
Functions | |
ATOM | MyRegisterClass (HINSTANCE hInstance) |
BOOL | InitInstance (HINSTANCE, int) |
LRESULT CALLBACK | WndProc (HWND, UINT, WPARAM, LPARAM) |
INT_PTR CALLBACK | AboutProc (HWND, UINT, WPARAM, LPARAM) |
INT_PTR CALLBACK | OptionsProc (HWND, UINT, WPARAM, LPARAM) |
INT_PTR CALLBACK | WarningProc (HWND, UINT, WPARAM, LPARAM) |
int WINAPI | WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) |
void | DoAppBarStuff (DWORD mode) |
void | AttachAppBar (INT uEdge) |
void | Refresh (void) |
void | GetBestOverlapWithMonitors (LPRECT rect) |
void | Draw (HDC aDc) |
void | HandleNotifyIconMessage (HWND hWnd, WPARAM wParam, LPARAM lParam) |
Variables | |
const TCHAR | szWindowClass [] = TEXT("MAGNIFIER") |
HINSTANCE | hInst |
HWND | hMainWnd |
TCHAR | szTitle [MAX_LOADSTRING] |
DWORD | lastTicks = 0 |
HWND | hDesktopWindow = NULL |
NOTIFYICONDATA | nid |
HICON | notifyIcon |
HMENU | notifyMenu |
HWND | hOptionsDialog |
BOOL | bOptionsDialog = FALSE |
BOOL | bRecreateOffscreenDC = TRUE |
LONG | sourceWidth = 0 |
LONG | sourceHeight = 0 |
HDC | hdcOffscreen = NULL |
HBITMAP | hbmpOffscreen = NULL |
HANDLE | hbmpOld |
POINT | ptDragOffset |
INT | nearEdge |
POINT | cp |
POINT | pMouse |
POINT | pCaret |
POINT | pFocus |
HWND | pCaretWnd |
HWND | pFocusWnd |
Definition at line 26 of file magnifier.c.
Definition at line 25 of file magnifier.c.
#define MAX_LOADSTRING 100 |
Definition at line 34 of file magnifier.c.
#define REPAINT_SPEED 100 |
Definition at line 38 of file magnifier.c.
#define TIMER_SPEED 1 |
Definition at line 37 of file magnifier.c.
Definition at line 840 of file magnifier.c.
Referenced by WndProc().
Definition at line 232 of file magnifier.c.
Referenced by WndProc().
Definition at line 144 of file magnifier.c.
Referenced by AttachAppBar(), InitInstance(), and WndProc().
Definition at line 359 of file magnifier.c.
Referenced by DECLARE_INTERFACE_(), FolderOptionsViewDlg(), ViewDlg_OnTreeCustomDraw(), and WndProc().
Definition at line 326 of file magnifier.c.
Referenced by Draw().
Definition at line 468 of file magnifier.c.
Referenced by WndProc().
Definition at line 266 of file magnifier.c.
Referenced by WinMain().
Definition at line 126 of file magnifier.c.
Referenced by WinMain().
Definition at line 860 of file magnifier.c.
Referenced by InitInstance().
Definition at line 317 of file magnifier.c.
Referenced by FindProgramDlg::Command(), DECLARE_INTERFACE_(), EventLogPropProc(), FindProgramDlg::FindProgramDlg(), CDeviceView::OnAction(), OptionsProc(), WndProc(), and NotifyArea::WndProc().
Definition at line 968 of file magnifier.c.
Referenced by InitInstance().
Definition at line 75 of file magnifier.c.
Definition at line 484 of file magnifier.c.
Referenced by MyRegisterClass().
Definition at line 48 of file magnifier.c.
Referenced by OptionsProc(), and WndProc().
Definition at line 49 of file magnifier.c.
Referenced by Draw(), OptionsProc(), and WndProc().
POINT cp |
Definition at line 59 of file magnifier.c.
Referenced by __acrt_locale_initialize_ctype(), __GetDefaultCP(), __GetLCIDFromName(), __GetLocaleInfoUsingACP(), __GetLocaleName(), __intGetACP(), __intGetOCP(), __subformat(), __TranslateToSystem(), _bdf_add_comment(), _get_next_token(), _getch_nolock(), _getwch_nolock(), _Locale_common_default(), _mbslwr_s_l(), _mbsstr_l(), _mbsupr_s_l(), _setmbcp(), _setmbcp_l(), _strlwr(), _strlwr_s_l_stat(), _strncnt(), _strupr(), _strupr_s_l_stat(), _TIFFCheckRealloc(), _TIFFprintAscii(), _TIFFprintAsciiBounded(), _TIFFsetNString(), _TIFFsetString(), add_file(), add_param(), AddrStrToAddr(), AddrToAddrStr(), adns_inet_aton(), advise_prop_notif(), AtlAdvise(), AtlUnadvise(), bind_script_to_text(), BookmarkCompletionFunction(), BreadthFirstCmp(), BuildPath(), cache_spot(), call_event_handlers(), call_property_onchanged(), Chdirs(), check_enc(), checkInkNamesString(), cnv_unicode(), CommandCompletionFunction(), CommandSubSearchCmp(), CompletionFunction(), ComputeLNames(), ComputeRNames(), ConnectionPoint_Create(), ConnectionPoint_Init(), ConnectionPointContainer_FindConnectionPoint(), create_event_sink(), DECLAREContigPutFunc(), DECLARESepPutFunc(), DecodeDirectoryURL(), DefaultBookmarkName(), detach_plugin_host(), do_advise(), DoCommand(), Draw(), DrawTextExA(), EDIT_BuildLineDefs_ML(), EnumConnections_Next(), ExpandTilde(), FD31_StripEditControl(), FGets(), FilenameExtensionIndicatesASCII(), fill_reobject_struct(), FindSubStrI(), fnIMLangFontLink2_GetStrCodePages(), fnIMultiLanguage3_GetCodePageDescription(), fnIMultiLanguage3_GetCodePageInfo(), fnIMultiLanguage3_ValidateCodePageEx(), fnIMultiLanguage_GetCodePageInfo(), fnIMultiLanguage_GetFamilyCodePage(), fnIMultiLanguage_GetNumberOfCodePageInfo(), FONT_mbtowc(), for(), fpAcc(), fpDiff(), ftGdiGetTextCharsetInfo(), FTPChdir3(), FTPDecodeURL(), FTPFtw(), FTPFtwL2(), FTPGetFiles3(), FTPLocalRecursiveFileList2(), FTPMkdir2(), FTPPutOneF(), FTPQueryFeatures(), FTPRemoteGlob(), get_code_page(), get_cp(), get_encoding_from_codepage(), get_input_codepage(), GetBookmark(), GetCalendarInfoA(), GetCurrencyFormatA(), GetFamilyCodePage(), GetHomeDir(), getline(), GetNumberFormatA(), GetOurHostName(), GetPwByName(), getreply(), GetResponse(), GetScreenColumns(), GetStartSpoolDate(), GetStringTypeA(), GetTabbedTextExtentA(), GetUsrName(), gl_do_tab_completion(), gl_getpass(), gl_init(), gl_local_filename_completion_proc(), gl_set_home_dir(), gl_text(), Global_Chr(), HandleUninstallCommand(), HaveCommandNameOnly(), HelpCmd(), horAcc8(), horDiff8(), horner_bezier_curve(), horner_bezier_surf(), HTMLDocument_on_advise(), inet_addr(), inet_aton(), init_output_buffer(), InitOurDirectory(), InitUserInfo(), InternalCompareStringA(), interpret(), iso9660_file_length(), ITextDocument2Old_fnGetPreferredFont(), Load_CP2Unicode_Table(), LoadFirewallPrefs(), Ls(), LsCacheAdd(), LsMonthNameToNum(), main(), map_wparam_char_WtoA(), MatchRegExp(), mdelete(), ME_CharFromPointContext(), ME_StreamInText(), memrchr(), METADC_ExtTextOut(), MFDRV_ExtTextOut(), mget(), MkDirs(), mlang_getcodepageinfo(), mlang_getcsetinfo_from_cp(), LocaleTest::moneypunct_by_name(), mput(), MultisetTest::mset3(), MsgiUnicodeToAnsiMessage(), MSVCRT__create_locale(), MSVCRT_locale_to_LCID(), MyInetAddr(), NLS_GetDateTimeFormatA(), notify_webbrowser_close(), nsIOService_NewURI(), OpenTrace(), parse_ncp(), parse_rr(), parse_xa(), ParseV4Address(), Passive(), PathCat(), PrefOptCompletionFunction(), PrintStartupBanner(), PropertyStorage_StoreNameWithId(), PushBackTrackState(), pvd_write(), ReadColorTbl(), reader_more(), readerinput_switchencoding(), Readline(), register_cp(), remglob(), RemoteCompletionFunction(), RemoteDirCompletionFunction(), RemoteFileCompletionFunction(), RemoteGlobCollapse(), request_send(), RichEditOleCallback_QueryInsertObject(), RTFDestroyAttrs(), scan_dir(), SError(), ServiceNameToPortNumber(), setnmap(), setpeer(), ShellCmd(), split_params(), strcat(), strcpy(), StrDup(), strntokc(), StrRemoveTrailingSlashes(), strtokc(), subdirs(), TabbedTextOutA(), test__ismbclx(), test_CodePageToScriptID(), test_ConnectionPoint(), test_cp_table(), test_dbcs_wm_char(), test_empty_document(), test_iframe_connections(), test_IMLangConvertCharset(), test_IWinHttpRequest(), test_Load(), test_mbbtombc(), test_mbcjisjms(), test_mbcjmsjis(), test_mbsspn(), test_mbsspnp(), test_threadcp(), test_unicode_wm_char(), test_wctob(), TIFFClientOpen(), TIFFPrintDirectory(), TIFFReverseBits(), TIFFSwabArrayOfDouble(), TIFFSwabArrayOfFloat(), TIFFSwabArrayOfLong(), TIFFSwabArrayOfLong8(), TIFFSwabArrayOfShort(), TIFFSwabArrayOfTriples(), TIFFSwabDouble(), TIFFSwabFloat(), TIFFSwabLong(), TIFFSwabLong8(), TIFFSwabShort(), token(), Traverse(), UnDosLine(), unfold_header(), UnLslR(), UnLslRLine(), UnMlsT(), unquote_string(), unregister_cp(), update_doc_cp_events(), update_threadlocinfo_category(), utf16_to_utf8(), utf8_to_utf16(), vers_write(), Vt100VisibleStrlen(), win_iconv(), WINHELP_FindLink(), WINHELP_SetupText(), winhttp_request_put_Option(), WinMain(), WndProc(), write_nls_files(), WriteDefaultFirewallPrefs(), xdr_char(), xdr_opaque(), xdr_u_char(), Mapdesc::xformCulling(), Mapdesc::xformMat(), and ZSTD_getCParams_internal().
Definition at line 53 of file magnifier.c.
HANDLE hbmpOld |
Definition at line 54 of file magnifier.c.
Referenced by BITMAP_LoadImageW(), create_alpha_bitmap(), CURSORICON_GetCursorDataFromBMI(), Draw(), NtGdiSelectBitmap(), Test_Bitmap(), Test_CreateDIBitmap_CBM_CREATDIB(), test_DIB_PAL_COLORS(), Test_GetDIBColorTable(), Test_SetDCPenColor(), UXTHEME_DrawThemePartToDib(), and WinMain().
Definition at line 52 of file magnifier.c.
Referenced by Draw(), test_mf_conversions(), and WinMain().
Definition at line 42 of file magnifier.c.
HINSTANCE hInst |
Definition at line 31 of file magnifier.c.
Referenced by InitInstance(), and WndProc().
HWND hMainWnd |
Definition at line 32 of file magnifier.c.
Referenced by AffinityDialogWndProc(), ApplicationPage_OnSwitchTo(), ApplicationPage_OnView(), ApplicationPageShowContextMenu1(), ApplicationPageShowContextMenu2(), ApplicationPageUpdate(), ApplicationPageWndProc(), AttachAppBar(), close_preview(), create_main_test_wnd(), CreateMainWindow(), dialog_print(), dialog_print_to_file(), dialog_printsetup(), DoAppBarStuff(), DoSetPriority(), Draw(), EnumWindowsProc(), FrameOnSize(), get_ruler_wnd(), HandleNotifyIconMessage(), ImageView_Main(), init_preview(), InitInstance(), MACRO_About(), MainWindow_OnSize(), MainWindow_WndProc(), MainWindowLoop(), OnAbout(), OptionsProc(), PerformancePage_OnViewCPUHistoryOneGraphAll(), PerformancePage_OnViewCPUHistoryOneGraphPerCPU(), PerformancePage_OnViewShowKernelTimes(), CDownloadManager::PerformDownloadAndInstall(), preview_bar_show(), preview_proc(), print_quick(), ProcessPage_OnDebug(), ProcessPage_OnEndProcess(), ProcessPage_OnEndProcessTree(), ProcessPage_OnSetAffinity(), ProcessPage_OnViewSelectColumns(), ProcessPageShowContextMenu(), CMainWindow::ProcessWindowMessage(), CDownloadManager::RealDlgProc(), Refresh(), registry_read_filelist(), registry_set_filelist(), registry_set_options(), CDownloadManager::Show(), StartProcess(), target_device(), TaskManager_OnFileNew(), TaskManager_OnOptionsAlwaysOnTop(), TaskManager_OnOptionsHideWhenMinimized(), TaskManager_OnOptionsMinimizeOnUse(), TaskManager_OnOptionsShow16BitTasks(), test_GetScrollBarInfo(), toggle_num_pages(), TrayIcon_RemoveIcon(), TrayIcon_Update(), update_preview(), update_preview_buttons(), update_preview_statusbar(), WinMain(), WndProc(), and wWinMain().
HWND hOptionsDialog |
Definition at line 47 of file magnifier.c.
Referenced by InitInstance(), and WndProc().
DWORD lastTicks = 0 |
Definition at line 40 of file magnifier.c.
Referenced by WndProc().
INT nearEdge |
Definition at line 56 of file magnifier.c.
Referenced by WndProc().
NOTIFYICONDATA nid |
Definition at line 44 of file magnifier.c.
Referenced by DisableNetworkAdapter(), Dialog::DoModal(), IconWindowClass::IconWindowClass(), CLanStatus::InitializeNetTaskbarNotifications(), PropSheetPage::PropSheetPage(), TrayIcon::Remove(), CUserNotification::RemoveIcon(), ResBitmap::ResBitmap(), ResIcon::ResIcon(), ResIconEx::ResIconEx(), ResString::ResString(), TrayIcon::Set(), CUserNotification::SetBalloonInfo(), CUserNotification::SetIconInfo(), SetWindowIcon(), CUserNotification::Show(), SmallIcon::SmallIcon(), TrayIcon_RemoveIcon(), TrayIcon_Update(), UpdateLanStatus(), WndProc(), and CUserNotification::WorkerWndProc().
HICON notifyIcon |
Definition at line 45 of file magnifier.c.
Referenced by WndProc().
HMENU notifyMenu |
Definition at line 46 of file magnifier.c.
Referenced by HandleNotifyIconMessage(), and WndProc().
POINT pCaret |
Definition at line 63 of file magnifier.c.
Referenced by WndProc().
HWND pCaretWnd |
Definition at line 65 of file magnifier.c.
Referenced by WndProc().
POINT pFocus |
Definition at line 64 of file magnifier.c.
Referenced by WndProc().
HWND pFocusWnd |
Definition at line 66 of file magnifier.c.
Referenced by ImmAssociateContextEx(), and WndProc().
POINT pMouse |
Definition at line 62 of file magnifier.c.
Referenced by Draw(), test_acquire(), test_GetDeviceInfo(), test_mouse_EnumObjects(), test_set_coop(), and WndProc().
POINT ptDragOffset |
Definition at line 55 of file magnifier.c.
Referenced by WndProc().
LONG sourceHeight = 0 |
Definition at line 51 of file magnifier.c.
Referenced by Draw().
LONG sourceWidth = 0 |
Definition at line 50 of file magnifier.c.
Referenced by Draw().
TCHAR szTitle[MAX_LOADSTRING] |
Definition at line 35 of file magnifier.c.
Referenced by _SetOperationTitle(), CBandSiteMenu::_ShowToolbarError(), About(), AddNewTopicEx(), AddOrUpdateHwnd(), AffinityDialogWndProc(), BrowseCursor(), DeleteUserCursorScheme(), DisplayError(), DisplayTitle(), DoSetPriority(), ExportRegistryFile(), FormatMessageBox(), GROUP_NewGroup(), ImageView_Main(), ImportRegistryFile(), InitApplet(), InitializePropertySheetPage(), InitInstance(), MyMessageBox(), NotifyBalloon(), OnCommand(), PathQualifyExW(), PerformRegAction(), Preview_ToggleSlideShow(), ProcessPage_OnEndProcess(), ProcessPage_OnEndProcessTree(), ProcessPage_OnSetAffinity(), PROGRAM_NewProgram(), PROPSHEET_CollectPageInfo(), PROPSHEET_SetTitleA(), PROPSHEET_SetTitleW(), RegisterDialogClasses(), SaveCursorScheme(), ShellMessageBoxA(), ShellMessageBoxW(), ShellMessageBoxWrapW(), ShowErrorTip(), ShowLastError(), SoundsDlgProc(), TaskManager_OnFileNew(), Telnet::telSetConsoleTitle(), test_pack_MDICREATESTRUCTA(), test_pack_MDICREATESTRUCTW(), WelcomeDlgProc(), WinMain(), and wWinMain().
Definition at line 28 of file magnifier.c.
Referenced by capCreateCaptureWindowW(), CMainWindow::GetWndClassInfo(), InitInstance(), MyRegisterClass(), and ParseCmdAndExecute().