// Microsoft Visual C++ generated resource script. // #include "resource.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #ifndef APSTUDIO_INVOKED #include "targetver.h" #endif #define APSTUDIO_HIDDEN_SYMBOLS #include "windows.h" #undef APSTUDIO_HIDDEN_SYMBOLS ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (United States) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_MANUAL_EDITING DIALOGEX 0, 0, 246, 116 STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_FIXEDSYS | DS_CENTER | WS_CAPTION EXSTYLE WS_EX_TOPMOST FONT 8, "MS Shell Dlg", 400, 0, 0x1 BEGIN CONTROL "X:",IDC_STATIC,"Static",SS_LEFTNOWORDWRAP | WS_GROUP,30,49,16,8,WS_EX_RIGHT EDITTEXT IDC_EDIT_X,54,48,48,14,ES_CENTER | ES_AUTOHSCROLL CONTROL "Y:",IDC_STATIC,"Static",SS_LEFTNOWORDWRAP | WS_GROUP,30,73,16,8,WS_EX_RIGHT EDITTEXT IDC_EDIT_Y,54,72,48,14,ES_CENTER | ES_AUTOHSCROLL CONTROL "Width:",IDC_STATIC,"Static",SS_LEFTNOWORDWRAP | WS_GROUP,128,49,22,8,WS_EX_RIGHT EDITTEXT IDC_EDIT_WIDTH,155,48,49,14,ES_CENTER | ES_AUTOHSCROLL CONTROL "Height:",IDC_STATIC,"Static",SS_LEFTNOWORDWRAP | WS_GROUP,126,73,24,8,WS_EX_RIGHT EDITTEXT IDC_EDIT_HEIGHT,155,72,49,14,ES_CENTER | ES_AUTOHSCROLL EDITTEXT IDC_EDIT_TITLE,6,6,234,14,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_TABSTOP EDITTEXT IDC_EDIT_CLASS,6,24,234,14,ES_CENTER | ES_AUTOHSCROLL | ES_READONLY | NOT WS_TABSTOP PUSHBUTTON "Set",IDC_BUTTON_SET,6,96,54,14 PUSHBUTTON "Center",IDC_BUTTON_CENTER,96,96,54,14 DEFPUSHBUTTON "Close",IDC_BUTTON_CLOSE,186,96,54,14 END IDD_ABOUTBOX DIALOGEX 0, 0, 324, 194 STYLE DS_SETFONT | DS_MODALFRAME | DS_SETFOREGROUND | DS_FIXEDSYS | DS_CENTER | WS_CAPTION EXSTYLE WS_EX_TOPMOST CAPTION "About wCenterWindow" FONT 8, "MS Shell Dlg", 0, 0, 0x1 BEGIN ICON IDI_TRAYICON,IDC_STATIC,12,12,24,24,SS_CENTERIMAGE RTEXT "",IDC_ABOUT_BUILDTIME,42,2,276,8,SS_NOPREFIX | WS_DISABLED CONTROL "",IDC_ABOUT_PROGNAME,"Static",SS_LEFTNOWORDWRAP | SS_NOPREFIX | WS_GROUP,42,14,276,8 CONTROL "",IDC_ABOUT_COPYRIGHT,"Static",SS_LEFTNOWORDWRAP | SS_NOPREFIX | WS_GROUP,42,26,276,8 GROUPBOX " License ",IDC_STATIC,6,42,312,126 LTEXT "Donation: ",IDC_DONATIONTEXT,6,174,42,12 CONTROL "Paypal",IDC_DONATIONLINK, "SysLink",WS_TABSTOP,42,174,168,12 DEFPUSHBUTTON "OK",IDOK,264,174,54,14 EDITTEXT IDC_ABOUTEDIT,12,54,300,108,ES_MULTILINE | ES_AUTOVSCROLL | ES_READONLY | NOT WS_BORDER | WS_VSCROLL END ///////////////////////////////////////////////////////////////////////////// // // DESIGNINFO // #ifdef APSTUDIO_INVOKED GUIDELINES DESIGNINFO BEGIN IDD_MANUAL_EDITING, DIALOG BEGIN END IDD_ABOUTBOX, DIALOG BEGIN END END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDI_TRAYICON ICON "wCenterWindow.ico" ///////////////////////////////////////////////////////////////////////////// // // Menu // IDR_MENU MENU BEGIN POPUP "PopupMenu" BEGIN MENUITEM "Hide icon", ID_POPUPMENU_ICON MENUITEM "Use workarea", ID_POPUPMENU_AREA MENUITEM SEPARATOR MENUITEM "Help", ID_POPUPMENU_HELP MENUITEM "About...", ID_POPUPMENU_ABOUT MENUITEM SEPARATOR MENUITEM "Exit", ID_POPUPMENU_EXIT END END #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resource.h\0" END 2 TEXTINCLUDE BEGIN "#ifndef APSTUDIO_INVOKED\r\n" "#include ""targetver.h""\r\n" "#endif\r\n" "#define APSTUDIO_HIDDEN_SYMBOLS\r\n" "#include ""windows.h""\r\n" "#undef APSTUDIO_HIDDEN_SYMBOLS\r\n" "\0" END 3 TEXTINCLUDE BEGIN "#include ""VersionInfo.rc""\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // String Table // STRINGTABLE BEGIN IDS_CLASSNAME "WCENTERWINDOW" IDS_APP_TITLE "wCenterWindow" END STRINGTABLE BEGIN IDS_HELP "This program centers the current active window by a 'LCTRL + LWIN + C' hotkey, or pressing 'LCTRL + LWIN + MMB' (Middle Mouse Button).\r\n\r\n'LCTRL + LWIN + V' - manual editing of size and position of the window.\r\n\r\nYou can use 'LCTRL + LWIN + I' hotkey for hide/show trayicon.\r\n\r\nYou can also use commandline option '/hide' for hide trayicon at startup.\r\n\r\nThe '/noupdate' option is used to disable check for updates. By default, the program checks for updates upon startup and once a day.\r\n\r\nThe 'Use workarea' option means that the window is centered without a taskbar, otherwise, the full resolution of the monitor will be used.\r\n\r\nIf some windows does not centers you should run wCenterWindow with administrative rights." IDS_ERR_MAIN "Something went wrong!" IDS_ERR_CLASS "ERROR! Can't register window class." IDS_ERR_WND "ERROR! Can't create window." IDS_ERR_ICON "ERROR! Can't create tray icon." IDS_ERR_MENU "ERROR! Can't load context menu." IDS_ERR_POPUP "ERROR! Can't get popup menu." IDS_ERR_HOOK "ERROR! Can't set hook." IDS_ERR_TIMER "ERROR! Can't set timer." IDS_ERR_HEAP "ERROR! Can't allocate buffer in heap memory." IDS_ERR_MAXMIN "The window should not be maximized or minimized." IDS_RUNNING "Program already running!" IDS_LICENSE "MIT License\r\n\r\nCopyright(c) 2023 W0LF aka 'dreamforce'\r\n\r\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files(the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and /or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions :\r\n\r\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r\n\r\nTHE SOFTWARE IS PROVIDED ""AS IS"", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." END #endif // English (United States) resources ///////////////////////////////////////////////////////////////////////////// #ifndef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 3 resource. // #include "VersionInfo.rc" ///////////////////////////////////////////////////////////////////////////// #endif // not APSTUDIO_INVOKED