Next output to window will start at (x,y), also moves displayable cursor to (x,y). For backward compatibility, 1 <= x < cols, 0 <= y < rows, where cols and rows are the size of window. */
| 963 | the size of window. |
| 964 | */ |
| 965 | void |
| 966 | mswin_curs(winid wid, int x, int y) |
| 967 | { |
| 968 | logDebug("mswin_curs(%d, %d, %d)\n", wid, x, y); |
| 969 | |
| 970 | if ((wid >= 0) && (wid < MAXWINDOWS) |
| 971 | && (GetNHApp()->windowlist[wid].win != NULL)) { |
| 972 | MSNHMsgCursor data; |
| 973 | data.x = x; |
| 974 | data.y = y; |
| 975 | SendMessage(GetNHApp()->windowlist[wid].win, WM_MSNH_COMMAND, |
| 976 | (WPARAM) MSNH_MSG_CURSOR, (LPARAM) &data); |
| 977 | } |
| 978 | } |
| 979 | |
| 980 | /* |
| 981 | putstr(window, attr, str) |