mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 20:53:50 -04:00
switch cursor to arrow
This commit is contained in:
parent
90665c17b9
commit
04824adf1b
@ -245,7 +245,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
|||||||
|
|
||||||
switch(msg) {
|
switch(msg) {
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
_hMouseCrossIcon = LoadCursor(NULL, IDC_CROSS);
|
_hMouseCrossIcon = LoadCursor(NULL, IDC_ARROW);
|
||||||
SetCursor(_hMouseCrossIcon);
|
SetCursor(_hMouseCrossIcon);
|
||||||
// atexit(AtExitFn); _gsg ptr seems to be bogus in AtExitFn for esc-press if you do this
|
// atexit(AtExitFn); _gsg ptr seems to be bogus in AtExitFn for esc-press if you do this
|
||||||
// to enable this, need to delete call to AtExitFn from under GetMessage loop
|
// to enable this, need to delete call to AtExitFn from under GetMessage loop
|
||||||
@ -579,7 +579,7 @@ void wdxGraphicsWindow::config(void) {
|
|||||||
wc.hIcon = NULL; // use default app icon
|
wc.hIcon = NULL; // use default app icon
|
||||||
}
|
}
|
||||||
|
|
||||||
wc.hCursor = LoadCursor(NULL, IDC_CROSS);
|
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||||
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
|
wc.hbrBackground = (HBRUSH)GetStockObject(BLACK_BRUSH);
|
||||||
wc.lpszMenuName = NULL;
|
wc.lpszMenuName = NULL;
|
||||||
wc.lpszClassName = "wdxDisplay";
|
wc.lpszClassName = "wdxDisplay";
|
||||||
|
@ -33,7 +33,7 @@ wglGraphicsPipe::wglGraphicsPipe(const PipeSpecifier& spec)
|
|||||||
wc.style = CS_OWNDC;
|
wc.style = CS_OWNDC;
|
||||||
wc.lpfnWndProc = (WNDPROC)static_window_proc;
|
wc.lpfnWndProc = (WNDPROC)static_window_proc;
|
||||||
wc.hInstance = hinstance;
|
wc.hInstance = hinstance;
|
||||||
wc.hCursor = LoadCursor(NULL, IDC_CROSS);
|
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||||
wc.hbrBackground = NULL;
|
wc.hbrBackground = NULL;
|
||||||
wc.lpszMenuName = NULL;
|
wc.lpszMenuName = NULL;
|
||||||
wc.lpszClassName = "wglStandard";
|
wc.lpszClassName = "wglStandard";
|
||||||
@ -167,7 +167,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
|||||||
|
|
||||||
switch (msg) {
|
switch (msg) {
|
||||||
case WM_CREATE:
|
case WM_CREATE:
|
||||||
hMouseCrossIcon = LoadCursor(NULL, IDC_CROSS);
|
hMouseCrossIcon = LoadCursor(NULL, IDC_ARROW);
|
||||||
SetCursor(hMouseCrossIcon);
|
SetCursor(hMouseCrossIcon);
|
||||||
return 0;
|
return 0;
|
||||||
case WM_CLOSE:
|
case WM_CLOSE:
|
||||||
@ -280,7 +280,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
|||||||
return DefWindowProc(hwnd, msg, wparam, lparam);
|
return DefWindowProc(hwnd, msg, wparam, lparam);
|
||||||
window = find_window(hwnd);
|
window = find_window(hwnd);
|
||||||
if (window) {
|
if (window) {
|
||||||
SetCursor(LoadCursor(NULL, IDC_CROSS));
|
SetCursor(LoadCursor(NULL, IDC_ARROW));
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user