retrieve cursor position */
| 308 | |
| 309 | /* retrieve cursor position */ |
| 310 | void |
| 311 | mswin_map_get_cursor(HWND hWnd, int *x, int *y) |
| 312 | { |
| 313 | PNHMapWindow data; |
| 314 | |
| 315 | data = (PNHMapWindow) GetWindowLong(hWnd, GWL_USERDATA); |
| 316 | if (!data) |
| 317 | panic("mswin_map_get_cursor: no window data"); |
| 318 | if (x) |
| 319 | *x = data->xCur; |
| 320 | if (y) |
| 321 | *y = data->yCur; |
| 322 | } |
| 323 | |
| 324 | /* register window class for map window */ |
| 325 | void |