updated for version 7.4a.037
Problem: Win32: When mouse is hidden and in the toolbar, moving it won't
make it appear. (Sami Salonen)
Solution: Add tabline_wndproc() and toolbar_wndproc(). (Ken Takata)
This commit is contained in:
@ -344,11 +344,13 @@ static UINT msh_msgmousewheel = 0;
|
|||||||
static int s_usenewlook; /* emulate W95/NT4 non-bold dialogs */
|
static int s_usenewlook; /* emulate W95/NT4 non-bold dialogs */
|
||||||
#ifdef FEAT_TOOLBAR
|
#ifdef FEAT_TOOLBAR
|
||||||
static void initialise_toolbar(void);
|
static void initialise_toolbar(void);
|
||||||
|
static LRESULT CALLBACK toolbar_wndproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
static int get_toolbar_bitmap(vimmenu_T *menu);
|
static int get_toolbar_bitmap(vimmenu_T *menu);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_GUI_TABLINE
|
#ifdef FEAT_GUI_TABLINE
|
||||||
static void initialise_tabline(void);
|
static void initialise_tabline(void);
|
||||||
|
static LRESULT CALLBACK tabline_wndproc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_MBYTE_IME
|
#ifdef FEAT_MBYTE_IME
|
||||||
@ -4127,10 +4129,22 @@ initialise_toolbar(void)
|
|||||||
TOOLBAR_BUTTON_HEIGHT,
|
TOOLBAR_BUTTON_HEIGHT,
|
||||||
sizeof(TBBUTTON)
|
sizeof(TBBUTTON)
|
||||||
);
|
);
|
||||||
|
s_toolbar_wndproc = SubclassWindow(s_toolbarhwnd, toolbar_wndproc);
|
||||||
|
|
||||||
gui_mch_show_toolbar(vim_strchr(p_go, GO_TOOLBAR) != NULL);
|
gui_mch_show_toolbar(vim_strchr(p_go, GO_TOOLBAR) != NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static LRESULT CALLBACK
|
||||||
|
toolbar_wndproc(
|
||||||
|
HWND hwnd,
|
||||||
|
UINT uMsg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
HandleMouseHide(uMsg, lParam);
|
||||||
|
return CallWindowProc(s_toolbar_wndproc, hwnd, uMsg, wParam, lParam);
|
||||||
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
get_toolbar_bitmap(vimmenu_T *menu)
|
get_toolbar_bitmap(vimmenu_T *menu)
|
||||||
{
|
{
|
||||||
@ -4207,12 +4221,24 @@ initialise_tabline(void)
|
|||||||
WS_CHILD|TCS_FOCUSNEVER|TCS_TOOLTIPS,
|
WS_CHILD|TCS_FOCUSNEVER|TCS_TOOLTIPS,
|
||||||
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT, s_hwnd, NULL, s_hinst, NULL);
|
CW_USEDEFAULT, s_hwnd, NULL, s_hinst, NULL);
|
||||||
|
s_tabline_wndproc = SubclassWindow(s_tabhwnd, tabline_wndproc);
|
||||||
|
|
||||||
gui.tabline_height = TABLINE_HEIGHT;
|
gui.tabline_height = TABLINE_HEIGHT;
|
||||||
|
|
||||||
# ifdef USE_SYSMENU_FONT
|
# ifdef USE_SYSMENU_FONT
|
||||||
set_tabline_font();
|
set_tabline_font();
|
||||||
# endif
|
# endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static LRESULT CALLBACK
|
||||||
|
tabline_wndproc(
|
||||||
|
HWND hwnd,
|
||||||
|
UINT uMsg,
|
||||||
|
WPARAM wParam,
|
||||||
|
LPARAM lParam)
|
||||||
|
{
|
||||||
|
HandleMouseHide(uMsg, lParam);
|
||||||
|
return CallWindowProc(s_tabline_wndproc, hwnd, uMsg, wParam, lParam);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -177,10 +177,12 @@ static HBRUSH s_brush = NULL;
|
|||||||
|
|
||||||
#ifdef FEAT_TOOLBAR
|
#ifdef FEAT_TOOLBAR
|
||||||
static HWND s_toolbarhwnd = NULL;
|
static HWND s_toolbarhwnd = NULL;
|
||||||
|
static WNDPROC s_toolbar_wndproc = NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FEAT_GUI_TABLINE
|
#ifdef FEAT_GUI_TABLINE
|
||||||
static HWND s_tabhwnd = NULL;
|
static HWND s_tabhwnd = NULL;
|
||||||
|
static WNDPROC s_tabline_wndproc = NULL;
|
||||||
static int showing_tabline = 0;
|
static int showing_tabline = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@ -727,6 +727,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
37,
|
||||||
/**/
|
/**/
|
||||||
36,
|
36,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user