Mercurial > vim
comparison src/GvimExt/gvimext.h @ 6805:81cb471657e0 v7.4.724
patch 7.4.724
Problem: Vim icon does not show in Windows context menu. (issue 249)
Solution: Load the icon in GvimExt.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 04 May 2015 18:27:36 +0200 |
parents | a0cce15dd2a9 |
children | 1e48ffa2d697 |
comparison
equal
deleted
inserted
replaced
6804:0d87f7311e5b | 6805:81cb471657e0 |
---|---|
108 | 108 |
109 // this is the actual OLE Shell context menu handler | 109 // this is the actual OLE Shell context menu handler |
110 class CShellExt : public IContextMenu, | 110 class CShellExt : public IContextMenu, |
111 IShellExtInit | 111 IShellExtInit |
112 { | 112 { |
113 private: | |
114 BOOL LoadMenuIcon(); | |
115 | |
113 protected: | 116 protected: |
114 ULONG m_cRef; | 117 ULONG m_cRef; |
115 LPDATAOBJECT m_pDataObj; | 118 LPDATAOBJECT m_pDataObj; |
116 UINT m_edit_existing_off; | 119 UINT m_edit_existing_off; |
120 HBITMAP m_hVimIconBitmap; | |
117 | 121 |
118 // For some reason, this callback must be static | 122 // For some reason, this callback must be static |
119 static BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam); | 123 static BOOL CALLBACK EnumWindowsProc(HWND hWnd, LPARAM lParam); |
120 | 124 |
121 STDMETHODIMP PushToWindow(HWND hParent, | 125 STDMETHODIMP PushToWindow(HWND hParent, |