fixed Windows cursor problems
svn: r432
This commit is contained in:
parent
3cedfb4745
commit
5bbfeb7c98
|
@ -110,10 +110,10 @@ Bool wxListBox::Create(wxPanel *panel, wxFunction func,
|
|||
|
||||
windows_id = NewId(this);
|
||||
|
||||
wx_list = wxwmCreateWindowEx(WS_EX_CLIENTEDGE, "wxLISTBOX", NULL,
|
||||
wstyle | WS_CHILD | WS_CLIPSIBLINGS,
|
||||
0, 0, 0, 0, cparent->handle, (HMENU)windows_id,
|
||||
wxhInstance, NULL);
|
||||
wx_list = CreateWindowExW(WS_EX_CLIENTEDGE, L"wxLISTBOX", NULL,
|
||||
wstyle | WS_CHILD | WS_CLIPSIBLINGS,
|
||||
0, 0, 0, 0, cparent->handle, (HMENU)windows_id,
|
||||
wxhInstance, NULL);
|
||||
|
||||
user_data = new char*[N];
|
||||
for (i = 0; i < N; i++) {
|
||||
|
|
|
@ -46,6 +46,12 @@ LRESULT APIENTRY wxWndProc(HWND, UINT, WPARAM, LPARAM);
|
|||
|
||||
__declspec(dllexport) void (*wx_post_setup)(void) = NULL;
|
||||
|
||||
LRESULT CALLBACK UnhideMouseHook(int nCode, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
wxUnhideCursor();
|
||||
return CallNextHookEx(0, nCode, wParam, lParam);
|
||||
}
|
||||
|
||||
static void RegisterNoCursor(HINSTANCE hInstance,
|
||||
char *src, char *dest, wchar_t *wsrc, wchar_t *wdest)
|
||||
{
|
||||
|
@ -136,6 +142,7 @@ void wxInitialize(HINSTANCE hInstance)
|
|||
RegisterNoCursor(hInstance, "LISTBOX", "wxLISTBOX", L"LISTBOX", L"wxLISTBOX");
|
||||
RegisterNoCursor(hInstance, "EDIT", "wxEDIT", L"EDIT", L"wxEDIT");
|
||||
RegisterNoCursor(hInstance, "STATIC", "wxSTATIC", L"STATIC", L"wxSTATIC");
|
||||
RegisterNoCursor(hInstance, WC_TABCONTROL, "wxTABCONTROL", WC_TABCONTROLW, L"wxTABCONTROL");
|
||||
}
|
||||
|
||||
wxREGGLOB(wxWinHandleList);
|
||||
|
@ -143,6 +150,8 @@ void wxInitialize(HINSTANCE hInstance)
|
|||
|
||||
wxWinHandleList = new wxNonlockingHashTable();
|
||||
wxSliderList = new wxNonlockingHashTable();
|
||||
|
||||
SetWindowsHookEx(WH_MOUSE, UnhideMouseHook, NULL, GetCurrentThreadId());
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -76,10 +76,10 @@ wxTabChoice::wxTabChoice(wxPanel *panel, wxFunction func, char *label,
|
|||
height = 2 * cy;
|
||||
}
|
||||
|
||||
hwndTab = CreateWindow(WC_TABCONTROL, "",
|
||||
WS_CHILD | WS_CLIPSIBLINGS,
|
||||
0, 0, width ? width : 40, height,
|
||||
cparent->handle, (HMENU)windows_id, wxhInstance, NULL);
|
||||
hwndTab = CreateWindowW(L"wxTABCONTROL", L"",
|
||||
WS_CHILD | WS_CLIPSIBLINGS,
|
||||
0, 0, width ? width : 40, height,
|
||||
cparent->handle, (HMENU)windows_id, wxhInstance, NULL);
|
||||
|
||||
nid = NewId(this);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user