IMmmKI / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Improve interface experience #410

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Change font
Change res.rc these lines:
IDD_MAINBOX DIALOG DISCARDABLE 32, 8, 256, 152
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
to:
IDD_MAINBOX DIALOGEX DISCARDABLE 32, 8, 256, 152
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
The font would be Tahoma, it better than default "Microsoft Sans Serif".

2. Make treeview looks better
Insert into windialog.c after:
HWND treeview = CreateWindowEx(...);
SendMessage(treeview, TVM_SETEXTENDEDSTYLE, 0, TVS_EX_DOUBLEBUFFER);
HMODULE hinstDLL = LoadLibrary(TEXT("uxtheme.dll"));
if (hinstDLL != NULL) {
    HRESULT (WINAPI *pfnSWT)(HWND, LPCWSTR, LPCWSTR) = 
            (HRESULT (WINAPI *)(HWND, LPCWSTR, LPCWSTR))GetProcAddress(hinstDLL, "SetWindowTheme");
    if (pfnSWT != NULL) {
        (*pfnSWT)(treeview, L"explorer", NULL);
    }
    FreeLibrary(hinstDLL);
}
It make listview or treeview looks better on Vista or above.

Original issue reported on code.google.com by shanxijiake on 19 Nov 2013 at 5:24

GoogleCodeExporter commented 8 years ago
Answered on https://github.com/mintty/mintty/issues/410

Original comment by towom...@googlemail.com on 19 Jun 2015 at 10:39