diff options
author | nyamatongwe <devnull@localhost> | 2001-12-29 01:52:53 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-12-29 01:52:53 +0000 |
commit | c5a692dbf8fec7248fc3f384174c4899dd5aa036 (patch) | |
tree | abb88911d166d6ff42ef607723c2fede40de5fa2 /win32/ScintillaWin.cxx | |
parent | b506b7d33b1f8372f6c1cdaf9490dd7338354ef1 (diff) | |
download | scintilla-mirror-c5a692dbf8fec7248fc3f384174c4899dd5aa036.tar.gz |
Using HINSTANCE from Scintilla_RegisterClasses to find cursor so that
static builds within DLLs will work.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r-- | win32/ScintillaWin.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 37297e0bf..1293d0737 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1879,9 +1879,12 @@ sptr_t PASCAL ScintillaWin::SWndProc( } } +extern HINSTANCE hinstPlatformRes; + // This function is externally visible so it can be called from container when building statically void Scintilla_RegisterClasses(void *hInstance) { - ScintillaWin::Register(reinterpret_cast<HINSTANCE>(hInstance)); + hinstPlatformRes = reinterpret_cast<HINSTANCE>(hInstance); + ScintillaWin::Register(hinstPlatformRes); } #ifndef STATIC_BUILD |