mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 02:42:49 -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) {
|
||||
case WM_CREATE:
|
||||
_hMouseCrossIcon = LoadCursor(NULL, IDC_CROSS);
|
||||
_hMouseCrossIcon = LoadCursor(NULL, IDC_ARROW);
|
||||
SetCursor(_hMouseCrossIcon);
|
||||
// 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
|
||||
@ -579,7 +579,7 @@ void wdxGraphicsWindow::config(void) {
|
||||
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.lpszMenuName = NULL;
|
||||
wc.lpszClassName = "wdxDisplay";
|
||||
|
@ -33,7 +33,7 @@ wglGraphicsPipe::wglGraphicsPipe(const PipeSpecifier& spec)
|
||||
wc.style = CS_OWNDC;
|
||||
wc.lpfnWndProc = (WNDPROC)static_window_proc;
|
||||
wc.hInstance = hinstance;
|
||||
wc.hCursor = LoadCursor(NULL, IDC_CROSS);
|
||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wc.hbrBackground = NULL;
|
||||
wc.lpszMenuName = NULL;
|
||||
wc.lpszClassName = "wglStandard";
|
||||
@ -167,7 +167,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
||||
|
||||
switch (msg) {
|
||||
case WM_CREATE:
|
||||
hMouseCrossIcon = LoadCursor(NULL, IDC_CROSS);
|
||||
hMouseCrossIcon = LoadCursor(NULL, IDC_ARROW);
|
||||
SetCursor(hMouseCrossIcon);
|
||||
return 0;
|
||||
case WM_CLOSE:
|
||||
@ -280,7 +280,7 @@ window_proc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
|
||||
return DefWindowProc(hwnd, msg, wparam, lparam);
|
||||
window = find_window(hwnd);
|
||||
if (window) {
|
||||
SetCursor(LoadCursor(NULL, IDC_CROSS));
|
||||
SetCursor(LoadCursor(NULL, IDC_ARROW));
|
||||
}
|
||||
return 1;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user