Skip to content

Commit 160f041

Browse files
committed
Initial
1 parent 01252b3 commit 160f041

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _ _ _
1010
>
1111
> * Shorten symbol name for several C++ libraries such as STL (you can easily modify or add more rules in the configuration file [VExtension.json](bins/VExtension/VExtension.json)).
1212
>
13-
> * Auto Expand the Width of the Name Column in API Tables
13+
> * Auto Fit the Width of the Name Column in API Tables
1414
1515
#### Usage
1616

VExtension.Page.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ VExtensionPage::VExtensionPage(json& prefs)
1313
, m_option_resolve_ordinal(nullptr)
1414
, m_option_undecorate_symbol(nullptr)
1515
, m_option_shorten_undecorated_symbol(nullptr)
16-
, m_option_auto_expand_last_column(nullptr)
16+
, m_option_auto_fit_width_column_name(nullptr)
1717
{
1818
}
1919

@@ -30,7 +30,7 @@ LRESULT VExtensionPage::DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
3030
m_option_resolve_ordinal = GetDlgItem(hWnd, IDC_OPTION_RESOLVE_ORDINAL);
3131
m_option_undecorate_symbol = GetDlgItem(hWnd, IDC_OPTION_UNDECORATE_SYMBOL);
3232
m_option_shorten_undecorated_symbol = GetDlgItem(hWnd, IDC_OPTION_SHORTEN_UNDECORATED_SYMBOL);
33-
m_option_auto_expand_last_column = GetDlgItem(hWnd, IDC_OPTION_AUTO_EXPAND_LAST_COLUMN);
33+
m_option_auto_fit_width_column_name = GetDlgItem(hWnd, IDC_OPTION_AUTO_FIT_LAST_COLUMN);
3434

3535
bool resolve_ordinal = json_get_option(m_prefs, "resolve_ordinal", true);
3636
Button_SetCheck(m_option_resolve_ordinal, resolve_ordinal ? BST_CHECKED : BST_UNCHECKED);
@@ -42,8 +42,8 @@ LRESULT VExtensionPage::DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
4242
Button_SetCheck(m_option_shorten_undecorated_symbol, shorten_undecorated_symbol ? BST_CHECKED : BST_UNCHECKED);
4343
Button_Enable(m_option_shorten_undecorated_symbol, undecorate_symbol ? TRUE : FALSE);
4444

45-
bool auto_expand_last_column = json_get_option(m_prefs, "auto_expand_name_column_width", true);
46-
Button_SetCheck(m_option_auto_expand_last_column, auto_expand_last_column ? BST_CHECKED : BST_UNCHECKED);
45+
bool auto_fit_width_column_name = json_get_option(m_prefs, "auto_fit_width_column_name", true);
46+
Button_SetCheck(m_option_auto_fit_width_column_name, auto_fit_width_column_name ? BST_CHECKED : BST_UNCHECKED);
4747
}
4848
break;
4949

@@ -73,10 +73,10 @@ LRESULT VExtensionPage::DlgProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
7373
}
7474
break;
7575

76-
case IDC_OPTION_AUTO_EXPAND_LAST_COLUMN:
76+
case IDC_OPTION_AUTO_FIT_LAST_COLUMN:
7777
{
78-
bool auto_expand_last_column = Button_GetCheck(m_option_auto_expand_last_column) == BST_CHECKED;
79-
json_set_option(m_prefs, "auto_expand_name_column_width", auto_expand_last_column);
78+
bool auto_fit_width_column_name = Button_GetCheck(m_option_auto_fit_width_column_name) == BST_CHECKED;
79+
json_set_option(m_prefs, "auto_fit_width_column_name", auto_fit_width_column_name);
8080
}
8181
break;
8282

VExtension.Page.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ class VExtensionPage
1616
HWND m_option_resolve_ordinal;
1717
HWND m_option_undecorate_symbol;
1818
HWND m_option_shorten_undecorated_symbol;
19-
HWND m_option_auto_expand_last_column;
19+
HWND m_option_auto_fit_width_column_name;
2020
};

VExtension.rc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ BEGIN
6262
CONTROL "Shorten the Undecorated C++ Symbol Names",IDC_OPTION_SHORTEN_UNDECORATED_SYMBOL,
6363
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,32,50,163,10,WS_EX_TRANSPARENT
6464
PUSHBUTTON "Save",IDC_OPTION_SAVE,6,84,50,14
65-
CONTROL "Auto Expand the Width of the Name Column in API Tables",IDC_OPTION_AUTO_EXPAND_LAST_COLUMN,
66-
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,65,201,10
65+
CONTROL "Auto Fit the Width of the Name Column in API Tables",IDC_OPTION_AUTO_FIT_LAST_COLUMN,
66+
"Button",BS_AUTOCHECKBOX | WS_TABSTOP,15,65,185,10
6767
END
6868

6969

bins/VExtension/VExtension.dll

0 Bytes
Binary file not shown.

bins/VExtension/VExtension.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"resolve_ordinal": true,
44
"undecorate_symbol": true,
55
"shorten_undecorated_symbol": true,
6-
"auto_expand_name_column_width": true
6+
"auto_fit_width_column_name": true
77
},
88
"symbol_name_rules": [
99
{

dllmain.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ void __fastcall CGridCtrl_OnSize_hook(CWnd* pWnd, unsigned int nType, unsigned i
119119
{
120120
ImportExportDirectory_Below_Grid = pWnd;
121121

122-
bool auto_expand_last_column = json_get_option(g_prefs, "auto_expand_name_column_width", true);
123-
if (auto_expand_last_column)
122+
bool auto_fit_width_column_name = json_get_option(g_prefs, "auto_fit_width_column_name", true);
123+
if (auto_fit_width_column_name)
124124
{
125125
vu::Debouncer::instance().debounce(ImportExportDirectory_Below_Grid_ID, 100, [&]() // 100ms
126126
{
@@ -218,8 +218,8 @@ QWORD __fastcall CGridCtrl_SendMessageToParent_hook(CWnd* pWnd, int nRow, int nC
218218

219219
auto result = CGridCtrl_SendMessageToParent_backup(pWnd, nRow, nCol, nMessage);
220220

221-
bool auto_expand_last_column = json_get_option(g_prefs, "auto_expand_name_column_width", true);
222-
if (auto_expand_last_column)
221+
bool auto_fit_width_column_name = json_get_option(g_prefs, "auto_fit_width_column_name", true);
222+
if (auto_fit_width_column_name)
223223
{
224224
CGridCtrl_ExpandLastColumn_Ex(ImportExportDirectory_Below_Grid);
225225
}

resource.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#define IDC_OPTION_SAVE 1002
88
#define IDC_OPTION_UNDECORATE_SYMBOL 1003
99
#define IDC_OPTION_SHORTEN_UNDECORATED_SYMBOL 1004
10-
#define IDC_OPTION_AUTO_EXPAND_LAST_COLUMN 1005
10+
#define IDC_OPTION_AUTO_FIT_LAST_COLUMN 1005
1111

1212
// Next default values for new objects
1313
//

screenshots/options.png

10.4 KB
Loading

0 commit comments

Comments
 (0)