├── .gitignore
├── LICENSE.txt
├── ReadMe.txt
├── help
├── en-us
│ ├── ToC.hhc
│ ├── contents
│ │ ├── 01.html
│ │ ├── 02.html
│ │ ├── 03.html
│ │ ├── 04.html
│ │ ├── ReMetrics.PNG
│ │ ├── ReMetrics.css
│ │ └── ReMetricsIcon.PNG
│ └── help_en.hhp
└── ja-jp
│ ├── ToC.hhc
│ ├── contents
│ ├── 01.html
│ ├── 02.html
│ ├── 03.html
│ ├── 04.html
│ ├── ReMetrics.PNG
│ ├── ReMetrics.css
│ └── ReMetricsIcon.PNG
│ └── help_ja-jp.hhp
├── lang
├── Chinese (Simplified)_China.lng
├── English.lng
├── Japanese.lng
└── Korean.lng
└── program
├── .gitignore
├── ReMetrics.cpp
├── ReMetrics.exe.manifest
├── ReMetrics.h
├── ReMetrics.ico
├── ReMetrics.rc
├── ReMetrics.sln
├── ReMetrics.vcproj
├── ReMetrics.vcxproj
├── ReMetrics.vcxproj.filters
├── ReMetrics.vcxproj.user
├── TWR
├── AppliBase.h
├── BaseDialog.cpp
├── BaseDialog.h
├── DialogAppliBase.cpp
├── DialogAppliBase.h
├── ModelessDialog.cpp
├── ModelessDialog.h
├── NCFileDialog.cpp
├── NCFileDialog.h
├── TwrCore.cpp
├── TwrCore.h
├── TwrMenu.cpp
├── TwrMenu.h
├── TwrUpDown.cpp
├── TwrUpDown.h
├── TwrWnd.cpp
├── TwrWnd.h
├── stdafx.h
└── tstring.h
├── iniReader.cpp
├── iniReader.h
├── langdef.h
├── resource.h
├── stdafx.cpp
├── stdafx.h
├── targetver.h
├── util.cpp
└── util.h
/.gitignore:
--------------------------------------------------------------------------------
1 | ################################################################################
2 | # この .gitignore ファイルは Microsoft(R) Visual Studio によって自動的に作成されました。
3 | ################################################################################
4 |
5 | /program/.vs
6 | /program/Debug_2008
7 | /program/Debug_2019
8 | /program/Release_2008
9 | /program/Release_2019
10 | .vs
11 |
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | License for the Re-Metrics Source Code (MIT license)
2 |
3 | Copyright (c) 2012-2021 Tatsuhiko Shoji
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/ReadMe.txt:
--------------------------------------------------------------------------------
1 | Re-Metrics
2 | By Tatsuhiko Syoji(Tatsu) 2012-2017,2020-2023
3 |
4 | [What's this?]
5 | This program sets window settings on Windows 8.1/10/11.
6 |
7 | [Required programs for compile]
8 | ・Visual Studio 2022
9 |
10 | [Source Files]
11 | ReadMe.txt:This file.
12 | LICENSE.txt : MIT license.
13 | programs/ReMetrics.sln : Visual Studio 2019/2022 solution file.
14 | programs/ReMetrics.vcxproj : Visual Studio 2019/2022 project file.
15 | programs/TWR/* : My private GUI tool kit.
16 | programs/* : Source files for Re-Metrics.
17 | lang/*.lng : Language files.
18 | help/*/* : Source files for help file.
19 |
20 | [Build]
21 | 1.Extruct this archive.
22 | 2.Onen ReMetrics.sln .
23 | 3.Build files.
24 |
25 | [license]
26 | MIT license(http://opensource.org/licenses/mit-license.php)
27 |
28 | [Author]
29 | Tatsuhiko Syoji
30 | E-mail Address rxk16664@nifty.ne.jp
31 | My Web page https://www.tatsu-syo.info/index.html
32 | ------------------------------------------------------------------------
33 |
--------------------------------------------------------------------------------
/help/en-us/ToC.hhc:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/help/en-us/contents/01.html:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | 1.Getting started
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 1.Getting started
21 |
22 |
23 |
1.1 What's this?
24 |
25 | This program sets window settings on Windows 8.1/10/11.
26 |
27 |
28 |
29 |
30 |
1.2 Target OS
31 |
32 | This program runs on Windows 8,8.1 and 10/11.
33 |
34 |
35 |
36 |
37 |
1.3 Files
38 |
39 |
40 |
41 |
42 | File name Contents
43 |
44 |
45 | ReMetrics.exe This software's executable file.
46 |
47 |
48 | *.lng Language files.
49 |
50 |
51 | *.chm Help files.
52 |
53 |
54 | src.zip Source files.
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
1.4 Installation
63 |
Install
64 |
65 | Extruct all files in same folder.
66 |
67 |
68 |
Uninstall
69 |
70 | Delete all files.
71 |
72 |
73 |
74 |
75 |
76 |
--------------------------------------------------------------------------------
/help/en-us/contents/02.html:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | 2.How to use
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | 2.How to use
22 |
23 |
24 |
2.1 Run program
25 |
26 | Run ReMetrics.exe.
27 | This icon( ).
28 | You will see below window.
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
2.2 Operation
39 |
Basic operation
40 |
41 | When window displayed, you see window element name and size.
42 | Please input size in textbox or change size clicking spin button.
43 |
44 | When setting ended, press OK button.
45 | You can change wildow element size.(Remark, OS adjust element size)
46 |
47 | When you press cancel button, program exits without action.
48 |
49 |
50 |
Menu
51 |
52 |
53 | File
54 |
55 | Load window settings...
56 | Load window settings from file. Please select window settings file.
57 | You can create window settings file by Save window settings...
58 |
59 | Save window settings...
60 | Save window settings into file.
61 | Please input window settings file name.
62 |
63 | Set window settings and quit
64 | Set window settings and quit program. Same as OK button.
65 |
66 | Exit
67 | Exit program without any action. Same as Cancel button.
68 |
69 |
70 |
71 | Preset
72 | You can choose window settings each Windows.
73 |
74 | Windows 2000
75 | Windows XP Classic
76 | Windows XP
77 | Windows Vista
78 | Windows 7 Basic
79 | Windows 7
80 | Windows 8/8.1
81 | Windows 10
82 | Windows 11
83 |
84 |
85 | Tols
86 |
87 | Set window settings in separated thread.
88 | If some resident programs block program exit, check this option.
89 |
90 |
91 |
92 | Help
93 |
94 | Help
95 | Show help file.
96 |
97 | Windows Version
98 | Show Windows version information.
99 | Use this information in troubleshooting.
100 |
101 | About Re-Metrics
102 | Show this program's version.
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
2.3 Setting items
112 |
113 |
114 | Border width
115 | Window's border width.
116 | On Windows 10, you can adjust window resize boundary.
117 |
118 | Title bar width
119 | Button width in title bar.
120 |
121 | Title bar height
122 | Height of title bar.
123 |
124 | Scroll bar width
125 | Width of scroll bar and it's button.
126 |
127 | Scroll bar height
128 | Height of scroll bar and it's button.
129 |
130 | Palette width
131 | Width of palette and it's button.
132 |
133 | Palette height
134 | Height of palette and it's button.
135 |
136 | Menu width
137 | Menu bar's button width in MDI application.
138 |
139 | Menu height
140 | Height of menu bar and Menu bar's button.
141 |
142 | Padded border width
143 | Width of window padding.
144 |
145 | Icon horizontal spacing
146 | Width of icon spacing.
147 |
148 | Icon vertical spacing
149 | Height of icon spacing.
150 |
151 |
152 |
153 | Icon horizontal spacing and icon vertical spacing are enabled after "Auto arrange icons" or "Align icons to grid".
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 | You can set window settings in command line
162 | Re-Metrics window settings file name [-set]
163 |
164 | You can create window settings file by this program.
165 | If window settings file countains white space, surround file name in double quote.
166 |
167 | If you specify -set after window setting file, program sets window settings from window settings file and program exits.
168 | Use this option in batch file or launcher.
169 |
170 |
171 |
Example 1. Load MySet.ini on running.
172 |
173 | ReMetrics MySet.ini
174 |
175 |
176 |
Example 2. Setting window settings from Your Settings.ini
177 |
178 | ReMetrics "Your Settings.ini" -set
179 |
180 |
181 |
182 |
183 |
184 |
185 |
--------------------------------------------------------------------------------
/help/en-us/contents/03.html:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | 3.History
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 | 3.History
22 |
23 |
24 |
08/13/2023 Version 1.36
25 |
Enhancement
26 |
27 | Apply system DPI on selecting preset.
28 |
29 |
30 |
31 |
32 |
11/06/2022 Version 1.35
33 |
Enhancement
34 |
35 | Add Simplyfied Chinese translation (thanks for GodGun968).
36 | Improve English translation (thanks for GodGun968).
37 |
38 |
39 |
40 |
41 |
09/11/2022 Version 1.34
42 |
Enhancement
43 |
44 | Add Korean translation (thanks for Josh Kim).
45 | Change language file encoding to UTF-8.
46 | Add help file fallback.
47 |
48 |
49 |
50 |
51 |
11/14/2021 Version 1.33
52 |
Enhancement
53 |
54 | Show Windows 11 version information.
55 | Add Windows 11 presets.
56 |
57 |
58 |
59 |
60 |
11/21/2020 Version 1.32
61 |
Enhancement
62 |
63 | Show new format version name for Windows 10 20H2.
64 |
65 |
66 |
67 |
68 |
07/18/2020 Version 1.31
69 |
Bug fix
70 |
71 | When DPI is high, some controls are hidden.
72 | Font is changed to Segoe UI because font size is too small when in high DPI.
73 | Version number didn't displayed.
74 |
75 |
76 |
77 |
78 |
05/04/2020 Version 1.30
79 |
Enhancement
80 |
81 | Initial multi language version.
82 |
83 |
84 |
85 |
86 |
87 |
--------------------------------------------------------------------------------
/help/en-us/contents/04.html:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
8 |
9 |
10 |
11 |
12 | License
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 | 4.License
21 |
22 |
29 |
30 |
31 |
39 |
40 |
41 |
42 |
Translators
43 |
44 |
45 | Language Author
46 |
47 |
48 | Japanese Tatsu
49 |
50 |
51 | English Tatsu,GodGun968
52 |
53 |
54 | Korean Josh Kim
55 |
56 |
57 | Simplified Chinese ,GodGun968
58 |
59 |
60 |
61 |
62 |
63 |
64 |
--------------------------------------------------------------------------------
/help/en-us/contents/ReMetrics.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/en-us/contents/ReMetrics.PNG
--------------------------------------------------------------------------------
/help/en-us/contents/ReMetrics.css:
--------------------------------------------------------------------------------
1 |
5 | body{
6 | background-color:#ccffcc;
7 | color:black;
8 | line-height:1.2em;
9 | }
10 | div.chapter{
11 | background-color:#ffffcc;
12 | color:black;
13 | margin:1em;
14 | padding:1em;
15 | border-width:1px;
16 | border-style:dotted;
17 | }
18 | h1{
19 | line-height:1.1em;
20 | }
21 | h3 {
22 | /* border-bottom-width:2px; */
23 | border-style:none none double none;
24 | }
25 | span.button {
26 | background-color:#cccccc;
27 | color:black;
28 | margin:1px;
29 | padding:1px;
30 | border-style:outset;
31 | border-width:2px;
32 | }
33 |
34 | span.check {
35 | background-color:#cccccc;
36 | color:black;
37 | margin:1px;
38 | padding:1px;
39 | border-style:inset;
40 | border-width:2px;
41 | }
42 |
--------------------------------------------------------------------------------
/help/en-us/contents/ReMetricsIcon.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/en-us/contents/ReMetricsIcon.PNG
--------------------------------------------------------------------------------
/help/en-us/help_en.hhp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/en-us/help_en.hhp
--------------------------------------------------------------------------------
/help/ja-jp/ToC.hhc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/ja-jp/ToC.hhc
--------------------------------------------------------------------------------
/help/ja-jp/contents/01.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/ja-jp/contents/01.html
--------------------------------------------------------------------------------
/help/ja-jp/contents/02.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/ja-jp/contents/02.html
--------------------------------------------------------------------------------
/help/ja-jp/contents/03.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/ja-jp/contents/03.html
--------------------------------------------------------------------------------
/help/ja-jp/contents/04.html:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/ja-jp/contents/04.html
--------------------------------------------------------------------------------
/help/ja-jp/contents/ReMetrics.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/ja-jp/contents/ReMetrics.PNG
--------------------------------------------------------------------------------
/help/ja-jp/contents/ReMetrics.css:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012-2021 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 | body{
6 | background-color:#ccffcc;
7 | color:black;
8 | line-height:1.2em;
9 | }
10 | div.chapter{
11 | background-color:#ffffcc;
12 | color:black;
13 | margin:1em;
14 | padding:1em;
15 | border-width:1px;
16 | border-style:dotted;
17 | }
18 | h1{
19 | line-height:1.1em;
20 | }
21 | h3 {
22 | /* border-bottom-width:2px; */
23 | border-style:none none double none;
24 | }
25 | span.button {
26 | background-color:#cccccc;
27 | color:black;
28 | margin:1px;
29 | padding:1px;
30 | border-style:outset;
31 | border-width:2px;
32 | }
33 |
34 | span.check {
35 | background-color:#cccccc;
36 | color:black;
37 | margin:1px;
38 | padding:1px;
39 | border-style:inset;
40 | border-width:2px;
41 | }
42 |
--------------------------------------------------------------------------------
/help/ja-jp/contents/ReMetricsIcon.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/ja-jp/contents/ReMetricsIcon.PNG
--------------------------------------------------------------------------------
/help/ja-jp/help_ja-jp.hhp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/help/ja-jp/help_ja-jp.hhp
--------------------------------------------------------------------------------
/lang/Chinese (Simplified)_China.lng:
--------------------------------------------------------------------------------
1 | ; Re-Metrics (C) 2012-2023 Tatsuhiko Shoji
2 | ; The sources for Re-Metrics are distributed under the MIT open source license
3 |
4 | ;In RESOURCE section,
5 | ;FONT_FACE key is dialog font name, other key is message.
6 | [RESOURCE]
7 | FONT_FACE=Segoe UI
8 | FONT_CHARSET=0
9 | TITLE=Re-Metrics
10 | MENU_FILE=文件(&F)
11 | MENU_FILE_LOAD=加载窗口设置(&O)...
12 | MENU_FILE_SAVE=保存窗口设置(&A)...
13 | MENU_FILE_SET_QUIT=设置各窗口然后退出(&S)
14 | MENU_FILE_QUIT=退出(&X)
15 | MENU_PRESET=预设(&P)
16 | MENU_PRESET_2000=Windows 2000
17 | MENU_PRESET_XP_CLASSIC=Windows XP Classic
18 | MENU_PRESET_XP=Windows XP
19 | MENU_PRESET_VISTA=Windows Vista
20 | MENU_PRESET_7_BASIC=Windows 7 Basic
21 | MENU_PRESET_7=Windows 7
22 | MENU_PRESET_8=Windows 8/8.1
23 | MENU_PRESET_10=Windows 10
24 | MENU_PRESET_11=Windows 11
25 | MENU_TOOLS=工具(&T)
26 | MENU_TOOLS_THREAD=在单独的线程中改变窗口宽度和高度
27 | MENU_HELP=帮助(&H)
28 | MENU_HELP_HELP=显示帮助(&C)
29 | MENU_HELP_WIN_VER=Windows版本(&W)
30 | MENU_HELP_ABOUT=&关于Re-Metrics
31 | DLG_BORDER_WIDTH=窗口宽度。
32 | DLG_TITLE_BAR_WIDTH=标题栏宽度
33 | DLG_TITLE_BAR_HEIGHT=标题栏高度
34 | DLG_SCROLL_BAR_WIDTH=滚动条宽度
35 | DLG_SCROLL_BAR_HEIGHT=滚动条高度
36 | DLG_PALETTE_WIDTH=调色板宽度
37 | DLG_PALETTE_HEIGHT=调色板高度
38 | DLG_MENU_WIDTH=菜单栏宽度
39 | DLG_MENU_HEIGHT=菜单栏高度
40 | DLG_WINDOW_PADDING=内外边框宽度
41 | DLG_ICON_HORIZONTAL_MARGIN=水平图标间距
42 | DLG_ICON_VERTICAL_MARGIN=垂直图标间距
43 | DLG_OK=确定
44 | DLG_CANCEL=取消
45 | DLG_WINVER_TITLE=Windows版本
46 | DLG_ABOUT_TITLE=关于Re-Metrics
47 | DLG_ABOUT_VERSION=Re-Metrics (翻译时)版本:1.36
48 | DLG_ABOUT_CREDIT=作者:Tatsuhiko Syoji(Tatsu) 2012-2017,2020-2023
49 | DLG_ABOUT_CREDIT2=中文(简体)翻译:GodGun968(神枪968)
50 | MSG_SETTING_FILE=窗口设置文件(*.ini)
51 | MSG_ALL_FILE=所有文件(*.*)
52 | MSG_LOAD_FAIL=窗口设置文件加载失败。
53 | MSG_SAVE_FAIL=窗口设置文件保存失败。
54 | MSG_ERROR=错误
55 | MSG_ABOUT=关于Re-Metrics
56 | MSG_NO_WINDOW_BORDER=请输入窗口宽度。
57 | MSG_NO_TITLEBAR_WIDTH=请输入标题栏宽度。
58 | MSG_NO_TITLEBAR_HEIGHT=请输入标题栏高度。
59 | MSG_NO_SCROLL_WIDTH=请输入滚动条宽度。
60 | MSG_NO_SCROLL_HEIGHT=请输入滚动条高度。
61 | MSG_NO_PALETTE_WIDTH=请输入调色板宽度。
62 | MSG_NO_PALETTE_HEIGHT=请输入调色板高度。
63 | MSG_NO_MENU_WIDTH=请输入菜单栏宽度。
64 | MSG_NO_MENU_HEIGHT=请输入菜单栏高度。
65 | MSG_NO_WINDOW_PADDING=请输入窗口内外边框内侧宽度。
66 | MSG_NO_ICON_HORIZONTAL_MARGIN=请输入水平图标间距。
67 | MSG_NO_ICON_VERTICAL_MARGIN=请输入垂直图标间距。
68 |
--------------------------------------------------------------------------------
/lang/English.lng:
--------------------------------------------------------------------------------
1 | ; Re-Metrics (C) 2012-2023 Tatsuhiko Shoji
2 | ; The sources for Re-Metrics are distributed under the MIT open source license
3 |
4 | ;In RESOURCE section,
5 | ;FONT_FACE key is dialog font name, other key is message.
6 | [RESOURCE]
7 | FONT_FACE=Segoe UI
8 | FONT_CHARSET=0
9 | TITLE=Re-Metrics
10 | MENU_FILE=&File
11 | MENU_FILE_LOAD=L&oad window settings...
12 | MENU_FILE_SAVE=S&ave window settings...
13 | MENU_FILE_SET_QUIT=&Set window settings and quit
14 | MENU_FILE_QUIT=E&xit
15 | MENU_PRESET=&Preset
16 | MENU_PRESET_2000=Windows 2000
17 | MENU_PRESET_XP_CLASSIC=Windows XP Classic
18 | MENU_PRESET_XP=Windows XP
19 | MENU_PRESET_VISTA=Windows Vista
20 | MENU_PRESET_7_BASIC=Windows 7 Basic
21 | MENU_PRESET_7=Windows 7
22 | MENU_PRESET_8=Windows 8/8.1
23 | MENU_PRESET_10=Windows 10
24 | MENU_PRESET_11=Windows 11
25 | MENU_TOOLS=&Tools
26 | MENU_TOOLS_THREAD=Set window settings in separated thread
27 | MENU_HELP=&Help
28 | MENU_HELP_HELP=&Help
29 | MENU_HELP_WIN_VER=&Windows Version
30 | MENU_HELP_ABOUT=&About Re-Metrics
31 | DLG_BORDER_WIDTH=Border width
32 | DLG_TITLE_BAR_WIDTH=Title bar width
33 | DLG_TITLE_BAR_HEIGHT=Title bar height
34 | DLG_SCROLL_BAR_WIDTH=Scroll bar width
35 | DLG_SCROLL_BAR_HEIGHT=Scroll bar height
36 | DLG_PALETTE_WIDTH=Palette width
37 | DLG_PALETTE_HEIGHT=Palette height
38 | DLG_MENU_WIDTH=Menu bar width
39 | DLG_MENU_HEIGHT=Menu bar height
40 | DLG_WINDOW_PADDING=Padded border width
41 | DLG_ICON_HORIZONTAL_MARGIN=Icon horizontal spacing
42 | DLG_ICON_VERTICAL_MARGIN=Icon vertical spacing
43 | DLG_OK=OK
44 | DLG_CANCEL=Cancel
45 | DLG_WINVER_TITLE=Windows version
46 | DLG_ABOUT_TITLE=About Re-Metrics
47 | DLG_ABOUT_VERSION=Re-Metrics Version 1.36
48 | DLG_ABOUT_CREDIT=By Tatsuhiko Syoji(Tatsu) 2012-2017,2020-2023
49 | DLG_ABOUT_CREDIT2=Translate:Tatsu,GodGun968
50 | MSG_SETTING_FILE=Window settings file(*.ini)
51 | MSG_ALL_FILE=All file(*.*)
52 | MSG_LOAD_FAIL=Window settings file load failed.
53 | MSG_SAVE_FAIL=Window settings file save failed.
54 | MSG_ERROR=Error
55 | MSG_ABOUT=About Re-Metrics
56 | MSG_NO_WINDOW_BORDER=Please input window border.
57 | MSG_NO_TITLEBAR_WIDTH=Please input title bar width.
58 | MSG_NO_TITLEBAR_HEIGHT=Please input title bar height.
59 | MSG_NO_SCROLL_WIDTH=Please input scroll bar width.
60 | MSG_NO_SCROLL_HEIGHT=Please input scroll bar height.
61 | MSG_NO_PALETTE_WIDTH=Please input palette width.
62 | MSG_NO_PALETTE_HEIGHT=Please input palette height.
63 | MSG_NO_MENU_WIDTH=Please input menu bar width.
64 | MSG_NO_MENU_HEIGHT=Please input menu bar height.
65 | MSG_NO_WINDOW_PADDING=Please input window padding.
66 | MSG_NO_ICON_HORIZONTAL_MARGIN=Please input horizontal icon margin.
67 | MSG_NO_ICON_VERTICAL_MARGIN=Please input vertical icon margin.
68 |
--------------------------------------------------------------------------------
/lang/Japanese.lng:
--------------------------------------------------------------------------------
1 | ; Re-Metrics (C) 2012-2023 Tatsuhiko Shoji
2 | ; The sources for Re-Metrics are distributed under the MIT open source license
3 |
4 | ;In RESOURCE section,
5 | ;FONT_FACE key is dialog font name, other key is message.
6 | [RESOURCE]
7 | FONT_FACE=メイリオ
8 | FONT_CHARSET=0
9 | TITLE=Re-Metrics
10 | MENU_FILE=ファイル(&F)
11 | MENU_FILE_LOAD=ウインドウ設定を読み込む(&O)...
12 | MENU_FILE_SAVE=ウインドウ設定を保存する(&A)...
13 | MENU_FILE_SET_QUIT=各項目を設定して終了(&S)
14 | MENU_FILE_QUIT=終了(&X)
15 | MENU_PRESET=プリセット(&P)
16 | MENU_PRESET_2000=Windows 2000
17 | MENU_PRESET_XP_CLASSIC=Windows XP Classic
18 | MENU_PRESET_XP=Windows XP
19 | MENU_PRESET_VISTA=Windows Vista
20 | MENU_PRESET_7_BASIC=Windows 7 ベーシック
21 | MENU_PRESET_7=Windows 7
22 | MENU_PRESET_8=Windows 8/8.1
23 | MENU_PRESET_10=Windows 10
24 | MENU_PRESET_11=Windows 11
25 | MENU_TOOLS=ツール(&T)
26 | MENU_TOOLS_THREAD=別スレッドで幅・高さを変更する
27 | MENU_HELP=ヘルプ(&H)
28 | MENU_HELP_HELP=ヘルプの表示(&C)
29 | MENU_HELP_WIN_VER=Windowsのバージョン(&W)
30 | MENU_HELP_ABOUT=バージョン情報(&A)
31 | DLG_BORDER_WIDTH=ウインドウの境界
32 | DLG_TITLE_BAR_WIDTH=タイトルバーの幅
33 | DLG_TITLE_BAR_HEIGHT=タイトルバーの高さ
34 | DLG_SCROLL_BAR_WIDTH=スクロールバーの幅
35 | DLG_SCROLL_BAR_HEIGHT=スクロールバーの高さ
36 | DLG_PALETTE_WIDTH=パレットの幅
37 | DLG_PALETTE_HEIGHT=パレットの高さ
38 | DLG_MENU_WIDTH=メニューの幅
39 | DLG_MENU_HEIGHT=メニューの高さ
40 | DLG_WINDOW_PADDING=ウインドウの境界の間隔
41 | DLG_ICON_HORIZONTAL_MARGIN=アイコンの間隔(横)
42 | DLG_ICON_VERTICAL_MARGIN=アイコンの間隔(縦)
43 | DLG_OK=OK
44 | DLG_CANCEL=キャンセル
45 | DLG_WINVER_TITLE=Windowsのバージョン
46 | DLG_ABOUT_TITLE=Re-Metricsについて
47 | DLG_ABOUT_VERSION=Re-Metrics Version 1.36
48 | DLG_ABOUT_CREDIT=By Tatsuhiko Syoji(Tatsu) 2012-2017,2020-2023
49 | DLG_ABOUT_CREDIT2=Translate:Tatsu
50 | MSG_SETTING_FILE=設定ファイル(*.ini)
51 | MSG_ALL_FILE=すべてのファイル(*.*)
52 | MSG_LOAD_FAIL=ウインドウ設定の読み込みに失敗しました。
53 | MSG_SAVE_FAIL=ウインドウ設定の保存に失敗しました。
54 | MSG_ERROR=エラー
55 | MSG_ABOUT=Re-Metricsについて
56 | MSG_NO_WINDOW_BORDER=ウインドウの境界が入力されてません。
57 | MSG_NO_TITLEBAR_WIDTH=タイトルバーの幅が入力されてません。
58 | MSG_NO_TITLEBAR_HEIGHT=タイトルバーの高さが入力されてません。
59 | MSG_NO_SCROLL_WIDTH=スクロールバーの幅が入力されてません。
60 | MSG_NO_SCROLL_HEIGHT=スクロールバーの高さが入力されてません。
61 | MSG_NO_PALETTE_WIDTH=パレットの幅が入力されてません。
62 | MSG_NO_PALETTE_HEIGHT=パレットの高さが入力されてません。
63 | MSG_NO_MENU_WIDTH=メニューの幅が入力されてません。
64 | MSG_NO_MENU_HEIGHT=メニューの高さが入力されてません。
65 | MSG_NO_WINDOW_PADDING=ウインドウ枠内部の幅が入力されてません。
66 | MSG_NO_ICON_HORIZONTAL_MARGIN=アイコンの間隔(横)が入力されてません。
67 | MSG_NO_ICON_VERTICAL_MARGIN=アイコンの間隔(縦)が入力されてません。
68 |
--------------------------------------------------------------------------------
/lang/Korean.lng:
--------------------------------------------------------------------------------
1 | ; Re-Metrics (C) 2012-2023 Tatsuhiko Shoji
2 | ; The sources for Re-Metrics are distributed under the MIT open source license
3 |
4 | ;In RESOURCE section,
5 | ;FONT_FACE key is dialog font name, other key is message.
6 | [RESOURCE]
7 | FONT_FACE=맑은 고딕
8 | FONT_CHARSET=129
9 | TITLE=Re-Metrics
10 | MENU_FILE=파일(&F)
11 | MENU_FILE_LOAD=불러오기...(&O)
12 | MENU_FILE_SAVE=윈도우 설정 저장...(&A)
13 | MENU_FILE_SET_QUIT=윈도우 설정 저장 후 종료(&S)
14 | MENU_FILE_QUIT=나가기(&X)
15 | MENU_PRESET=프리셋(&P)
16 | MENU_PRESET_2000=Windows 2000
17 | MENU_PRESET_XP_CLASSIC=Windows XP Classic
18 | MENU_PRESET_XP=Windows XP
19 | MENU_PRESET_VISTA=Windows Vista
20 | MENU_PRESET_7_BASIC=Windows 7 Basic
21 | MENU_PRESET_7=Windows 7
22 | MENU_PRESET_8=Windows 8/8.1
23 | MENU_PRESET_10=Windows 10
24 | MENU_PRESET_11=Windows 11
25 | MENU_TOOLS=도구(&T)
26 | MENU_TOOLS_THREAD=별도의 스레드에서 윈도우 설정 구성
27 | MENU_HELP=&Help
28 | MENU_HELP_HELP=도움말(&H)
29 | MENU_HELP_WIN_VER=Windows 버전(&W)
30 | MENU_HELP_ABOUT=Re-Metrics 정보(&A)
31 | DLG_BORDER_WIDTH=테두리 너비
32 | DLG_TITLE_BAR_WIDTH=제목 표시줄 너비
33 | DLG_TITLE_BAR_HEIGHT=제목 표시줄 높이
34 | DLG_SCROLL_BAR_WIDTH=스크롤 바 너비
35 | DLG_SCROLL_BAR_HEIGHT=스크롤 바 높이
36 | DLG_PALETTE_WIDTH=팔레트 너비
37 | DLG_PALETTE_HEIGHT=팔레트 높이
38 | DLG_MENU_WIDTH=메뉴 너비
39 | DLG_MENU_HEIGHT=메뉴 높이
40 | DLG_WINDOW_PADDING=안쪽 여백이 있는 테두리 너비
41 | DLG_ICON_HORIZONTAL_MARGIN=아이콘 수평 간격
42 | DLG_ICON_VERTICAL_MARGIN=아이콘 수직 간격
43 | DLG_OK=OK
44 | DLG_CANCEL=취소
45 | DLG_WINVER_TITLE=Windows 버전
46 | DLG_ABOUT_TITLE=Re-Metrics 정보
47 | DLG_ABOUT_VERSION=Re-Metrics 버전 1.36
48 | DLG_ABOUT_CREDIT=By Tatsuhiko Syoji(Tatsu) 2012-2017,2020-2023
49 | DLG_ABOUT_CREDIT2=Translate: Josh Kim (joshkkim@gmail.com)
50 | MSG_SETTING_FILE=창 설정 파일 (*.ini)
51 | MSG_ALL_FILE=전체 파일 (*.*)
52 | MSG_LOAD_FAIL=창 설정 파일 불러오기를 실패했습니다.
53 | MSG_SAVE_FAIL=창 설정 파일 저장을 실패했습니다.
54 | MSG_ERROR=오류
55 | MSG_ABOUT=Re-Metrics 정보
56 | MSG_NO_WINDOW_BORDER=창 테두리를 입력하세요.
57 | MSG_NO_TITLEBAR_WIDTH=제목 표시줄 너비를 입력하세요.
58 | MSG_NO_TITLEBAR_HEIGHT=제목 표시줄 높이를 입력하세요.
59 | MSG_NO_SCROLL_WIDTH=스크롤 바 너비를 입력하세요.
60 | MSG_NO_SCROLL_HEIGHT=스크롤 바 높이를 입력하세요.
61 | MSG_NO_PALETTE_WIDTH=팔레트 너비를 입력하세요.
62 | MSG_NO_PALETTE_HEIGHT=팔레트 높이를 입력하세요.
63 | MSG_NO_MENU_WIDTH=메뉴 표시줄 너비를 입력하세요.
64 | MSG_NO_MENU_HEIGHT=메뉴 표시줄 높이를 입력하세요.
65 | MSG_NO_WINDOW_PADDING=창 내부 여백을 입력하세요.
66 | MSG_NO_ICON_HORIZONTAL_MARGIN=수평 아이콘 바깥쪽 여백을 입력하세요.
67 | MSG_NO_ICON_VERTICAL_MARGIN=수직 아이콘 바깥쪽 여백 없음.
68 |
--------------------------------------------------------------------------------
/program/.gitignore:
--------------------------------------------------------------------------------
1 | ################################################################################
2 | # この .gitignore ファイルは Microsoft(R) Visual Studio によって自動的に作成されました。
3 | ################################################################################
4 |
5 | /Debug
6 | /Debug_2013
7 | /Release
8 | /Release_2013
9 |
--------------------------------------------------------------------------------
/program/ReMetrics.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/ReMetrics.cpp
--------------------------------------------------------------------------------
/program/ReMetrics.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 | ReMetrics set window metrics on Windows 8.
10 |
11 |
12 |
20 |
21 |
22 |
23 |
24 | True
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/program/ReMetrics.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/ReMetrics.h
--------------------------------------------------------------------------------
/program/ReMetrics.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/ReMetrics.ico
--------------------------------------------------------------------------------
/program/ReMetrics.rc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/ReMetrics.rc
--------------------------------------------------------------------------------
/program/ReMetrics.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.0.31903.59
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ReMetrics", "ReMetrics.vcxproj", "{0F28EA7F-B997-4CBB-8BCA-96A013FCBE7D}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Win32 = Debug|Win32
11 | Release|Win32 = Release|Win32
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {0F28EA7F-B997-4CBB-8BCA-96A013FCBE7D}.Debug|Win32.ActiveCfg = Release|Win32
15 | {0F28EA7F-B997-4CBB-8BCA-96A013FCBE7D}.Debug|Win32.Build.0 = Release|Win32
16 | {0F28EA7F-B997-4CBB-8BCA-96A013FCBE7D}.Release|Win32.ActiveCfg = Release|Win32
17 | {0F28EA7F-B997-4CBB-8BCA-96A013FCBE7D}.Release|Win32.Build.0 = Release|Win32
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {3CC52E48-BACD-4DA6-A756-7AFCC35643FE}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/program/ReMetrics.vcproj:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/ReMetrics.vcproj
--------------------------------------------------------------------------------
/program/ReMetrics.vcxproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | Win32
7 |
8 |
9 | Release
10 | Win32
11 |
12 |
13 |
14 | {0F28EA7F-B997-4CBB-8BCA-96A013FCBE7D}
15 | ReMetrics
16 | Win32Proj
17 | 10.0.19041.0
18 |
19 |
20 |
21 | Application
22 | v143
23 | Unicode
24 | true
25 |
26 |
27 | Application
28 | v143
29 | Unicode
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 | <_ProjectFileVersion>12.0.30501.0
43 |
44 |
45 | $(SolutionDir)$(Configuration)\
46 | $(Configuration)\
47 | true
48 |
49 |
50 | $(SolutionDir)$(Configuration)\
51 | $(Configuration)\
52 | false
53 |
54 |
55 |
56 | Disabled
57 | TWR;%(AdditionalIncludeDirectories)
58 | WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)
59 | false
60 | EnableFastChecks
61 | MultiThreadedDebug
62 |
63 |
64 | Level3
65 | EditAndContinue
66 | stdcpp20
67 | true
68 |
69 |
70 | /SUBSYSTEM:Windows,6.0 %(AdditionalOptions)
71 | comctl32.lib;%(AdditionalDependencies)
72 | true
73 | Windows
74 | true
75 | true
76 | MachineX86
77 |
78 |
79 |
80 |
81 | MinSpace
82 | true
83 | TWR;%(AdditionalIncludeDirectories)
84 | WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)
85 | MultiThreaded
86 | true
87 |
88 |
89 | Level3
90 | ProgramDatabase
91 | stdcpp20
92 |
93 |
94 | /SUBSYSTEM:Windows,6.0 %(AdditionalOptions)
95 | comctl32.lib;%(AdditionalDependencies)
96 | true
97 | true
98 | Windows
99 | true
100 | true
101 | MachineX86
102 |
103 |
104 |
105 |
106 |
107 |
108 | Create
109 | Create
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 | Designer
153 |
154 |
155 |
156 |
157 |
158 |
--------------------------------------------------------------------------------
/program/ReMetrics.vcxproj.filters:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | {4FC737F1-C7A5-4376-A066-2A32D752A2FF}
6 | cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx
7 |
8 |
9 | {90f3b3ee-1753-4ebb-9906-def71793c448}
10 |
11 |
12 | {93995380-89BD-4b04-88EB-625FBE52EBFB}
13 | h;hpp;hxx;hm;inl;inc;xsd
14 |
15 |
16 | {622eb756-5ec6-4e52-9361-85649a2fb045}
17 |
18 |
19 | {67DA6AB6-F800-4c08-8B7A-83BB121AAD01}
20 | rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav
21 |
22 |
23 |
24 |
25 | ソース ファイル
26 |
27 |
28 | ソース ファイル
29 |
30 |
31 | ソース ファイル\TWR
32 |
33 |
34 | ソース ファイル\TWR
35 |
36 |
37 | ソース ファイル\TWR
38 |
39 |
40 | ソース ファイル\TWR
41 |
42 |
43 | ソース ファイル\TWR
44 |
45 |
46 | ソース ファイル\TWR
47 |
48 |
49 | ソース ファイル\TWR
50 |
51 |
52 | ソース ファイル
53 |
54 |
55 | ソース ファイル
56 |
57 |
58 | ソース ファイル
59 |
60 |
61 |
62 |
63 | ヘッダー ファイル
64 |
65 |
66 | ヘッダー ファイル
67 |
68 |
69 | ヘッダー ファイル
70 |
71 |
72 | ヘッダー ファイル
73 |
74 |
75 | ヘッダー ファイル\TWR
76 |
77 |
78 | ヘッダー ファイル\TWR
79 |
80 |
81 | ヘッダー ファイル\TWR
82 |
83 |
84 | ヘッダー ファイル\TWR
85 |
86 |
87 | ヘッダー ファイル\TWR
88 |
89 |
90 | ヘッダー ファイル\TWR
91 |
92 |
93 | ヘッダー ファイル\TWR
94 |
95 |
96 | ヘッダー ファイル\TWR
97 |
98 |
99 | ヘッダー ファイル\TWR
100 |
101 |
102 | ヘッダー ファイル\TWR
103 |
104 |
105 | ヘッダー ファイル
106 |
107 |
108 | ヘッダー ファイル
109 |
110 |
111 | ヘッダー ファイル
112 |
113 |
114 | ヘッダー ファイル
115 |
116 |
117 |
118 |
119 | リソース ファイル
120 |
121 |
122 |
123 |
124 | リソース ファイル
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
--------------------------------------------------------------------------------
/program/ReMetrics.vcxproj.user:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/program/TWR/AppliBase.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/AppliBase.h
--------------------------------------------------------------------------------
/program/TWR/BaseDialog.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/BaseDialog.cpp
--------------------------------------------------------------------------------
/program/TWR/BaseDialog.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/BaseDialog.h
--------------------------------------------------------------------------------
/program/TWR/DialogAppliBase.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/DialogAppliBase.cpp
--------------------------------------------------------------------------------
/program/TWR/DialogAppliBase.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/DialogAppliBase.h
--------------------------------------------------------------------------------
/program/TWR/ModelessDialog.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/ModelessDialog.cpp
--------------------------------------------------------------------------------
/program/TWR/ModelessDialog.h:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012,2013 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 | #ifndef MODELESSDIALOG_H
6 | #define MODELESSDIALOG_H
7 |
8 | #include
9 |
10 | void initModelessDialog(void);
11 | void addModelessDialog(HWND dialog);
12 | void delModelessDialog(HWND dialog);
13 | bool handleDialogMessage(LPMSG lpMsg);
14 |
15 | #endif
16 |
--------------------------------------------------------------------------------
/program/TWR/NCFileDialog.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/NCFileDialog.cpp
--------------------------------------------------------------------------------
/program/TWR/NCFileDialog.h:
--------------------------------------------------------------------------------
1 | /*
2 | noMeiryoUI (C) 2005,2012-2015 Tatsuhiko Shoji
3 | The sources for noMeiryoUI are distributed under the MIT open source license
4 | */
5 | #ifndef NCFileDialog_H
6 | #define NCFileDialog_H
7 |
8 | class NCFileDialog {
9 | private:
10 | TCHAR gotFileName[_MAX_PATH];
11 | BOOL m_OpenFileDialog;
12 | const char *m_defExt;
13 | public:
14 | OPENFILENAME m_ofn;
15 |
16 | NCFileDialog(
17 | BOOL bOpenFileDialog,
18 | const char *lpszDefExt = NULL,
19 | const TCHAR *lpszFileName = NULL,
20 | DWORD dwFlags = OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT,
21 | const TCHAR *lpszFilter = NULL,
22 | HWND pParentWnd = NULL,
23 | DWORD dwSize = 0
24 | );
25 |
26 | int DoModal();
27 | TCHAR *GetPathName() { return gotFileName;};
28 | OPENFILENAME &GetOFN() {
29 | return m_ofn;
30 | }
31 | };
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/program/TWR/TwrCore.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/TwrCore.cpp
--------------------------------------------------------------------------------
/program/TWR/TwrCore.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/TwrCore.h
--------------------------------------------------------------------------------
/program/TWR/TwrMenu.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/TwrMenu.cpp
--------------------------------------------------------------------------------
/program/TWR/TwrMenu.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/TwrMenu.h
--------------------------------------------------------------------------------
/program/TWR/TwrUpDown.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/TwrUpDown.cpp
--------------------------------------------------------------------------------
/program/TWR/TwrUpDown.h:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012,2013 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 | #ifndef TWRBUTTON_H
6 | #define TWRBUTTON_H
7 |
8 | #include "commctrl.h"
9 | #include "TwrWnd.h"
10 |
11 | class TwrUpDown : public TwrWnd {
12 | public:
13 | TwrUpDown() : TwrWnd() {
14 | }
15 | TwrUpDown(HWND hwnd) : TwrWnd(hwnd) {
16 | }
17 | HWND create(HWND parent, HMENU id);
18 | void setBuddy(HWND buddy) {
19 | SendMessage(hWnd, UDM_SETBUDDY, (WPARAM)buddy, 0);
20 | }
21 | HWND getBuddy(void) {
22 | return (HWND)SendMessage(hWnd, UDM_GETBUDDY, 0, 0);
23 | }
24 | void setRange(int min, int max) {
25 | SendMessage(hWnd, UDM_SETRANGE32, (WPARAM)min, (LPARAM)max);
26 | }
27 | void setPos(int pos) {
28 | SendMessage(hWnd, UDM_SETPOS32, 0, (LPARAM)pos);
29 | }
30 |
31 | };
32 |
33 | #endif
34 |
--------------------------------------------------------------------------------
/program/TWR/TwrWnd.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/TwrWnd.cpp
--------------------------------------------------------------------------------
/program/TWR/TwrWnd.h:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012,2013 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 | #ifndef TWRWND_H
6 | #define TWRWND_H
7 |
8 | #include
9 |
10 | #include "tstring.h"
11 |
12 | /**
13 | * Tatsu's windows api WRapper
14 | * Window base class
15 | */
16 | class TwrWnd {
17 | protected:
18 | HWND hWnd;
19 | tstring title;
20 | int left;
21 | int top;
22 | int width;
23 | int height;
24 | public:
25 | TwrWnd();
26 | TwrWnd(HWND newWnd);
27 | virtual ~TwrWnd();
28 |
29 | BOOL UpdateWindow();
30 | BOOL ShowWindow(int nCmdShow);
31 | void EnableWindow(BOOL enabled);
32 | HWND getHwnd() {
33 | return hWnd;
34 | }
35 | void destroyWindow(void) {
36 | DestroyWindow(hWnd);
37 | }
38 | void setText(const TCHAR *text);
39 | void setPoint(int x, int y);
40 | void setSize(int w, int h);
41 | void setFont(HFONT font);
42 | };
43 |
44 | #endif
--------------------------------------------------------------------------------
/program/TWR/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/TWR/stdafx.h
--------------------------------------------------------------------------------
/program/TWR/tstring.h:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012,2013 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 | #ifndef TSTRING
6 | #define TSTRING
7 |
8 | #include
9 | #include
10 |
11 | typedef std::basic_string tstring;
12 |
13 | #endif
14 |
--------------------------------------------------------------------------------
/program/iniReader.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/iniReader.cpp
--------------------------------------------------------------------------------
/program/iniReader.h:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012-2017,2020,2021,2022 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 | #ifndef INIREADER_H
6 | #define INIREADER_H
7 |
8 | #include
9 |
10 | DWORD GetPrivateProfileStringExT(
11 | const char *sectionName,
12 | const TCHAR *keyName,
13 | const TCHAR *defaultValue,
14 | tstring &returnString,
15 | TCHAR *iniFileName);
16 |
17 | #endif
18 |
--------------------------------------------------------------------------------
/program/langdef.h:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012-2017,2020,2021 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 | #define FONT_FACE 0
6 | #define FONT_CHARSET 1
7 | #define TITLE 2
8 | #define MENU_FILE 3
9 | #define MENU_FILE_LOAD 4
10 | #define MENU_FILE_SAVE 5
11 | #define MENU_FILE_SET_QUIT 6
12 | #define MENU_FILE_QUIT 7
13 | #define MENU_PRESET 8
14 | #define MENU_PRESET_2000 9
15 | #define MENU_PRESET_XP_CLASSIC 10
16 | #define MENU_PRESET_XP 11
17 | #define MENU_PRESET_VISTA 12
18 | #define MENU_PRESET_7_BASIC 13
19 | #define MENU_PRESET_7 14
20 | #define MENU_PRESET_8 15
21 | #define MENU_PRESET_10 16
22 | #define MENU_TOOLS 17
23 | #define MENU_TOOLS_THREAD 18
24 | #define MENU_HELP 19
25 | #define MENU_HELP_HELP 20
26 | #define MENU_HELP_WIN_VER 21
27 | #define MENU_HELP_ABOUT 22
28 | #define DLG_BORDER_WIDTH 23
29 | #define DLG_TITLEBAR_WIDTH 24
30 | #define DLG_TITLEBAR_HEIGHT 25
31 | #define DLG_SCROLL_WIDTH 26
32 | #define DLG_SCROLL_HEIGHT 27
33 | #define DLG_PALETTE_WIDTH 28
34 | #define DLG_PALETTE_HEIGHT 29
35 | #define DLG_MENU_WIDTH 30
36 | #define DLG_MENU_HEIGHT 31
37 | #define DLG_WINDOW_PADDING 32
38 | #define DLG_ICON_HORIZONTAL_MARGIN 33
39 | #define DLG_ICON_VERTICAL_MARGIN 34
40 | #define DLG_OK 35
41 | #define DLG_CANCEL 36
42 | #define DLG_WINVER_TITLE 37
43 | #define DLG_ABOUT_TITLE 38
44 | #define DLG_ABOUT_VERSION 39
45 | #define DLG_ABOUT_CREDIT 40
46 | #define DLG_ABOUT_CREDIT2 41
47 | #define MSG_SETTING_FILE 42
48 | #define MSG_ALL_FILE 43
49 | #define MSG_LOAD_FAIL 44
50 | #define MSG_SAVE_FAIL 45
51 | #define MSG_ERROR 46
52 | #define MSG_ABOUT 47
53 | #define MSG_NO_WINDOW_BORDER 48
54 | #define MSG_NO_TITLEBAR_WIDTH 49
55 | #define MSG_NO_TITLEBAR_HEIGHT 50
56 | #define MSG_NO_SCROLL_WIDTH 51
57 | #define MSG_NO_SCROLL_HEIGHT 52
58 | #define MSG_NO_PALETTE_WIDTH 53
59 | #define MSG_NO_PALETTE_HEIGHT 54
60 | #define MSG_NO_MENU_WIDTH 55
61 | #define MSG_NO_MENU_HEIGHT 56
62 | #define MSG_NO_WINDOW_PADDING 57
63 | #define MSG_NO_ICON_HORIZONTAL_MARGIN 58
64 | #define MSG_NO_ICON_VERTICAL_MARGIN 59
65 | #define MENU_PRESET_11 60
66 |
--------------------------------------------------------------------------------
/program/resource.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/resource.h
--------------------------------------------------------------------------------
/program/stdafx.cpp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/stdafx.cpp
--------------------------------------------------------------------------------
/program/stdafx.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/stdafx.h
--------------------------------------------------------------------------------
/program/targetver.h:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Tatsu-syo/ReMetrics/b669eb6120e2dc2a820879153d10dd2d267b71f1/program/targetver.h
--------------------------------------------------------------------------------
/program/util.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012-2017,2021,2022,2023 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 |
6 | #include
7 | #include "util.h"
8 | #include "iniReader.h"
9 |
10 | /** 言語リソース */
11 | std::vector langResource;
12 |
13 | int codePage = 0;
14 |
15 | /**
16 | * リソースの読み込みを行う。
17 | *
18 | * @param file リソースファイル名
19 | * @param key キー名
20 | * @param 読み込めなかった時の文字列
21 | */
22 | void readResourceItem(TCHAR *file, const TCHAR *key, const TCHAR *fallback)
23 | {
24 | tstring buf;
25 | int len;
26 |
27 | // INIファイルを読み込む。Unicode版のAPIでもファイルが非Unicodeの場合は
28 | // 各言語の文字コードのファイルとして読んでくれる。
29 | len = GetPrivateProfileStringExT("RESOURCE", key, _T(""), buf, file);
30 |
31 | if (len > 0) {
32 | langResource.push_back(buf);
33 | } else {
34 | langResource.push_back(fallback);
35 | }
36 |
37 | }
38 |
39 | /**
40 | * リソースの読み込みを開始する。
41 | *
42 | * @param file リソースファイル名
43 | */
44 | void readResourceFile(TCHAR *file)
45 | {
46 | readResourceItem(file, _T("FONT_FACE"),
47 | _T("Segoe UI")
48 | );
49 | readResourceItem(file, _T("FONT_CHARSET"),
50 | _T("1")
51 | );
52 | readResourceItem(file, _T("TITLE"),
53 | _T("Re-Metrics")
54 | );
55 | readResourceItem(file, _T("MENU_FILE"),
56 | _T("&File")
57 | );
58 | readResourceItem(file, _T("MENU_FILE_LOAD"),
59 | _T("L&oad window settings...")
60 | );
61 | readResourceItem(file, _T("MENU_FILE_SAVE"),
62 | _T("S&ave window settings...")
63 | );
64 | readResourceItem(file, _T("MENU_FILE_SET_QUIT"),
65 | _T("&Set window settings and quit")
66 | );
67 | readResourceItem(file, _T("MENU_FILE_QUIT"),
68 | _T("E&xit")
69 | );
70 | readResourceItem(file, _T("MENU_PRESET"),
71 | _T("&Preset")
72 | );
73 | readResourceItem(file, _T("MENU_PRESET_2000"),
74 | _T("Windows 2000")
75 | );
76 | readResourceItem(file, _T("MENU_PRESET_XP_Classic"),
77 | _T("Windows XP Classic")
78 | );
79 | readResourceItem(file, _T("MENU_PRESET_XP"),
80 | _T("Windows XP")
81 | );
82 | readResourceItem(file, _T("MENU_PRESET_VISTA"),
83 | _T("Windows Vista")
84 | );
85 | readResourceItem(file, _T("MENU_PRESET_7_BASIC"),
86 | _T("Windows 7 Basic")
87 | );
88 | readResourceItem(file, _T("MENU_PRESET_7"),
89 | _T("Windows 7")
90 | );
91 | readResourceItem(file, _T("MENU_PRESET_8"),
92 | _T("Windows 8/8.1")
93 | );
94 | readResourceItem(file, _T("MENU_PRESET_10"),
95 | _T("Windows 10")
96 | );
97 | readResourceItem(file, _T("MENU_TOOLS"),
98 | _T("&Tools")
99 | );
100 | readResourceItem(file, _T("MENU_TOOLS_THREAD"),
101 | _T("Set window settings in separated thread")
102 | );
103 | readResourceItem(file, _T("MENU_HELP"),
104 | _T("&Help")
105 | );
106 | readResourceItem(file, _T("MENU_HELP_HELP"),
107 | _T("&Help")
108 | );
109 | readResourceItem(file, _T("MENU_HELP_WIN_VER"),
110 | _T("&Windows Version")
111 | );
112 | readResourceItem(file, _T("MENU_HELP_ABOUT"),
113 | _T("&About Re-Metrics")
114 | );
115 | readResourceItem(file, _T("DLG_BORDER_WIDTH"),
116 | _T("Border width")
117 | );
118 | readResourceItem(file, _T("DLG_TITLE_BAR_WIDTH"),
119 | _T("Title bar width")
120 | );
121 | readResourceItem(file, _T("DLG_TITLE_BAR_HEIGHT"),
122 | _T("Title bar height")
123 | );
124 | readResourceItem(file, _T("DLG_SCROLL_BAR_WIDTH"),
125 | _T("Scroll bar width")
126 | );
127 | readResourceItem(file, _T("DLG_SCROLL_BAR_HEIGHT"),
128 | _T("Scroll bar height")
129 | );
130 | readResourceItem(file, _T("DLG_PALETTE_WIDTH"),
131 | _T("Palette width")
132 | );
133 | readResourceItem(file, _T("DLG_PALETTE_HEIGHT"),
134 | _T("Palette height")
135 | );
136 | readResourceItem(file, _T("DLG_MENU_WIDTH"),
137 | _T("Menu width")
138 | );
139 | readResourceItem(file, _T("DLG_MENU_HEIGHT"),
140 | _T("Menu height")
141 | );
142 | readResourceItem(file, _T("DLG_WINDOW_PADDING"),
143 | _T("Padded border width")
144 | );
145 | readResourceItem(file, _T("DLG_ICON_HORIZONTAL_MARGIN"),
146 | _T("Icon horizontal spacing")
147 | );
148 | readResourceItem(file, _T("DLG_ICON_VERTICAL_MARGIN"),
149 | _T("Icon vertical spacing")
150 | );
151 | readResourceItem(file, _T("DLG_OK"),
152 | _T("OK")
153 | );
154 | readResourceItem(file, _T("DLG_CANCEL"),
155 | _T("Cancel")
156 | );
157 | readResourceItem(file, _T("DLG_WINVER_TITLE"),
158 | _T("Windows version")
159 | );
160 | readResourceItem(file, _T("DLG_ABOUT_TITLE"),
161 | _T("About Re-Metrics")
162 | );
163 | readResourceItem(file, _T("DLG_ABOUT_VERSION"),
164 | _T("Re-Metrics Version 1.36")
165 | );
166 | readResourceItem(file, _T("DLG_ABOUT_CREDIT"),
167 | _T("By Tatsuhiko Syoji(Tatsu) 2012-2017,2020-2023")
168 | );
169 | readResourceItem(file, _T("DLG_ABOUT_CREDIT2"),
170 | _T("Translate:Tatsu")
171 | );
172 |
173 | readResourceItem(file, _T("MSG_SETTING_FILE"),
174 | _T("Window settings file(*.ini)")
175 | );
176 | readResourceItem(file, _T("MSG_ALL_FILE"),
177 | _T("All file(*.*)")
178 | );
179 | readResourceItem(file, _T("MSG_LOAD_FAIL"),
180 | _T("Window settings file load failed.")
181 | );
182 | readResourceItem(file, _T("MSG_SAVE_FAIL"),
183 | _T("Window settings file save failed.")
184 | );
185 | readResourceItem(file, _T("MSG_ERROR"),
186 | _T("Error")
187 | );
188 | readResourceItem(file, _T("MSG_ABOUT"),
189 | _T("About Re-Metrics")
190 | );
191 |
192 | readResourceItem(file, _T("MSG_NO_WINDOW_BORDER"),
193 | _T("Please input window border.")
194 | );
195 | readResourceItem(file, _T("MSG_NO_TITLEBAR_WIDTH"),
196 | _T("Please input title bar width.")
197 | );
198 | readResourceItem(file, _T("MSG_NO_TITLEBAR_HEIGHT"),
199 | _T("Please input title bar height.")
200 | );
201 | readResourceItem(file, _T("MSG_NO_SCROLL_WIDTH"),
202 | _T("Please input scroll bar width.")
203 | );
204 | readResourceItem(file, _T("MSG_NO_SCROLL_HEIGHT"),
205 | _T("Please input scroll bar height.")
206 | );
207 | readResourceItem(file, _T("MSG_NO_PALETTE_WIDTH"),
208 | _T("Please input palette width.")
209 | );
210 | readResourceItem(file, _T("MSG_NO_PALETTE_HEIGHT"),
211 | _T("Please input palette height.")
212 | );
213 | readResourceItem(file, _T("MSG_NO_MENU_WIDTH"),
214 | _T("Please input menu bar width.")
215 | );
216 | readResourceItem(file, _T("MSG_NO_MENU_HEIGHT"),
217 | _T("Please input menu bar height.")
218 | );
219 | readResourceItem(file, _T("MSG_NO_WINDOW_PADDING"),
220 | _T("Please input window padding.")
221 | );
222 | readResourceItem(file, _T("MSG_NO_ICON_HORIZONTAL_MARGIN"),
223 | _T("Please input horizontal icon margin.")
224 | );
225 | readResourceItem(file, _T("MSG_NO_ICON_VERTICAL_MARGIN"),
226 | _T("No vertical icon margin.")
227 | );
228 | readResourceItem(file, _T("MENU_PRESET_11"),
229 | _T("Windows 11")
230 | );
231 | }
232 |
233 | /**
234 | * charをunsignedとみなしてintに変換する
235 | *
236 | * @param c 変換するchar
237 | * @return cをunsignedとみなして変換した値
238 | */
239 | inline int charToInt(char c)
240 | {
241 | if (c < 0) {
242 | return 256 + c;
243 | }
244 | else {
245 | return c;
246 | }
247 |
248 | }
249 |
250 | /**
251 | * UTF-8文字列をUTF-16文字列に変換する
252 | *
253 | * @param src 変換元UTF-8文字列
254 | * @param dst 変換先領域(NULL可能)
255 | * @return 必要となるwchar_tの個数
256 | */
257 | size_t utf8toUtf16(tstring& dst, const char* src)
258 | {
259 | wchar_t wc;
260 | int shift_count;
261 | int i;
262 |
263 | assert(src != NULL);
264 |
265 | while (*src) {
266 | // Extruct to Unicode
267 | int c = charToInt(*src);
268 |
269 | wc = 0;
270 | if (c < 0x80) {
271 | // 1byte(7bit)
272 | wc = c;
273 | shift_count = 0;
274 | }
275 | else if (c >= 0xfc) {
276 | // 6bytes(27-32bit:no use)
277 | wc = c & 0x01;
278 | shift_count = 5;
279 | }
280 | else if (c >= 0xf8) {
281 | // 5bytes(22-26bit:no use)
282 | wc = c & 0x03;
283 | shift_count = 4;
284 | }
285 | else if (c >= 0xf0) {
286 | // 4bytes(17-21bit)
287 | wc = c & 0x07;
288 | shift_count = 3;
289 | }
290 | else if (c >= 0xe0) {
291 | // 3bytes(12-16bit)
292 | wc = c & 0x0f;
293 | shift_count = 2;
294 | }
295 | else if (c >= 0xc0) {
296 | // 2bytes(8-11bit)
297 | wc = c & 0x1f;
298 | shift_count = 1;
299 | }
300 | else {
301 | break;
302 | }
303 |
304 | src++;
305 | for (i = 0; i < shift_count; i++) {
306 | if (*src == '\0') {
307 | wc = L'\0';
308 | break;
309 | }
310 | c = charToInt(*src);
311 |
312 | wc = wc << 6;
313 | wc = wc | (c & 0x3f);
314 | src++;
315 | }
316 |
317 | if (c >= 0x10000) {
318 | // Windows uses UTF-16 LE
319 | int c1 = (c & 0x3ff) | 0xdc00;
320 | int c2_1 = (c >> 10) | 0x3f;
321 | int c2_2 = ((c >> 16) & 0x1f) - 1;
322 | int c2 = 0xd800 | c2_2 | c2_1;
323 |
324 | dst += c1;
325 | dst += c2;
326 | }
327 | else {
328 | dst += wc;
329 | }
330 | }
331 |
332 | return dst.length();
333 | }
334 |
335 |
--------------------------------------------------------------------------------
/program/util.h:
--------------------------------------------------------------------------------
1 | /*
2 | Re-Metrics (C) 2012-2017,2020,2021 Tatsuhiko Shoji
3 | The sources for Re-Metrics are distributed under the MIT open source license
4 | */
5 | #ifndef UTIL_H
6 | #define UTIL_H
7 |
8 | #include
9 | #include
10 | #include
11 | #include
12 | #include "TWR/tstring.h"
13 |
14 | #define PRESET_SECTION "PRESET"
15 | #define APP_FONTSIZE 11
16 |
17 | extern bool WIN8_SIZE;
18 | extern std::vector langResource;
19 | /** CodePage */
20 | extern int codePage;
21 |
22 | void readResourceFile(TCHAR *file);
23 | size_t utf8toUtf16(tstring& dst, const char* src);
24 |
25 | #endif
26 |
--------------------------------------------------------------------------------