MCPcopy Create free account
hub / github.com/NetHack/NetHack / mswin_message_window_size

Function mswin_message_window_size

outdated/sys/wince/mhmsgwnd.c:599–619  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599void
600mswin_message_window_size(HWND hWnd, LPSIZE sz)
601{
602 PNHMessageWindow data;
603 RECT rt, client_rt;
604
605 GetWindowRect(hWnd, &rt);
606
607 sz->cx = rt.right - rt.left;
608 sz->cy = rt.bottom - rt.top;
609
610 data = (PNHMessageWindow) GetWindowLong(hWnd, GWL_USERDATA);
611 if (data) {
612 /* set size to accommodate MSG_VISIBLE_LINES, highligh rectangle and
613 horizontal scroll bar (difference between window rect and client
614 rect */
615 GetClientRect(hWnd, &client_rt);
616 sz->cy = sz->cy - (client_rt.bottom - client_rt.top)
617 + data->yChar * MSG_VISIBLE_LINES + 4;
618 }
619}

Callers 1

mswin_layout_main_windowFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected