diff options
| author | nyamatongwe <devnull@localhost> | 2002-06-09 02:58:47 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2002-06-09 02:58:47 +0000 |
| commit | c3180784fd4ddaeee62e88fe3545b2e1eac206ae (patch) | |
| tree | b6e7149f27524e0a395625832ec006de73a33609 /win32/PlatWin.cxx | |
| parent | 10b691abfe43f83ef484141ca1793bb65e7b25a7 (diff) | |
| download | scintilla-mirror-c3180784fd4ddaeee62e88fe3545b2e1eac206ae.tar.gz | |
Compatibility with 64 bit systems.
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index 709e6e480..be6c2305a 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -16,6 +16,7 @@ #include <windows.h> #include <commctrl.h> #include <richedit.h> +#include <windowsx.h> #include "Platform.h" #include "PlatformRes.h" @@ -769,8 +770,7 @@ ListBox::~ListBox() { } void ListBox::Create(Window &parent, int ctrlID) { - HINSTANCE hinstanceParent = reinterpret_cast<HINSTANCE>( - ::GetWindowLong(reinterpret_cast<HWND>(parent.GetID()),GWL_HINSTANCE)); + HINSTANCE hinstanceParent = GetWindowInstance(reinterpret_cast<HWND>(parent.GetID())); id = ::CreateWindowEx( WS_EX_WINDOWEDGE, "listbox", "", WS_CHILD | WS_THICKFRAME | WS_VSCROLL | LBS_NOTIFY, @@ -816,7 +816,7 @@ void ListBox::Clear() { void ListBox::Append(char *s) { Window_SendMessage(this, LB_ADDSTRING, 0, reinterpret_cast<LPARAM>(s)); - size_t len = strlen(s); + unsigned int len = static_cast<unsigned int>(strlen(s)); if (maxItemCharacters < len) maxItemCharacters = len; } @@ -959,6 +959,11 @@ long Platform::SendScintilla(WindowID w, unsigned int msg, unsigned long wParam, return ::SendMessage(reinterpret_cast<HWND>(w), msg, wParam, lParam); } +long Platform::SendScintillaPointer(WindowID w, unsigned int msg, unsigned long wParam, void *lParam) { + return ::SendMessage(reinterpret_cast<HWND>(w), msg, wParam, + reinterpret_cast<LPARAM>(lParam)); +} + bool Platform::IsDBCSLeadByte(int codePage, char ch) { return ::IsDBCSLeadByteEx(codePage, ch) != 0; } |
