Skip to content

Commit 0016026

Browse files
Add a flag to hide the "More..." button in SimpleDlg (bchavez#38)
1 parent d6e968e commit 0016026

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

source/Client/BugTrap.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ typedef enum BUGTRAP_FLAGS_tag
105105
* provider.
106106
*/
107107
BTF_ATTACHREPORT = 0x004,
108+
/**
109+
* @brief By default BugTrap show a "More..." button to open
110+
* the advanced ui in the simple dialog. Enable this flag
111+
* hide the button.
112+
*/
113+
BTF_HIDEMOREBUTTON = 0x006,
108114
/**
109115
* @brief Set this flag to add list of all processes and loaded
110116
* modules to the report. Disable this option to speedup report

source/Client/SimpleDlg.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,11 @@ static void InitControls(HWND hwnd)
119119
ShowWindow(hwndMailTo, SW_HIDE);
120120
}
121121

122+
if (g_dwFlags & BTF_HIDEMOREBUTTON)
123+
{
124+
ShowWindow(hwndMore, FALSE);
125+
}
126+
122127
HWND hwndFocus = IsWindowEnabled(hwndSubmitBug) ? hwndSubmitBug : hwndClose;
123128
SetFocus(hwndFocus);
124129
SendMessage(hwnd, DM_SETDEFID, GetDlgCtrlID(hwndFocus), 0l);

0 commit comments

Comments
 (0)