================ rvDebuggerWindow::ProcessNetMessage Process an incoming network message ================ */
| 1886 | ================ |
| 1887 | */ |
| 1888 | void rvDebuggerWindow::ProcessNetMessage ( idBitMsg* msg ) |
| 1889 | { |
| 1890 | short command; |
| 1891 | |
| 1892 | command = msg->ReadShort( ); |
| 1893 | |
| 1894 | switch ( command ) |
| 1895 | { |
| 1896 | case DBMSG_REMOVEBREAKPOINT: |
| 1897 | MessageBeep(MB_ICONEXCLAMATION); |
| 1898 | InvalidateRect(mWndScript, NULL, FALSE); |
| 1899 | UpdateBreakpointList(); |
| 1900 | break; |
| 1901 | |
| 1902 | case DBMSG_RESUMED: |
| 1903 | UpdateTitle ( ); |
| 1904 | UpdateToolbar ( ); |
| 1905 | break; |
| 1906 | |
| 1907 | case DBMSG_INSPECTVARIABLE: |
| 1908 | { |
| 1909 | char temp[1024]; |
| 1910 | char temp2[1024]; |
| 1911 | int i; |
| 1912 | |
| 1913 | msg->ReadShort ( ); |
| 1914 | msg->ReadString ( temp, 1024 ); |
| 1915 | msg->ReadString ( temp2, 1024 ); |
| 1916 | if ( mTooltipVar.Icmp ( temp ) == 0 ) |
| 1917 | { |
| 1918 | mTooltipValue = temp2; |
| 1919 | |
| 1920 | TOOLINFO info; |
| 1921 | info.cbSize = sizeof(info); |
| 1922 | info.hwnd = mWndScript; |
| 1923 | info.uId = 0; |
| 1924 | info.hinst = mInstance; |
| 1925 | info.lpszText = va("%s=%s", mTooltipVar.c_str(), mTooltipValue.c_str() ); |
| 1926 | SendMessage ( mWndToolTips, TTM_UPDATETIPTEXT, 0, (LPARAM)&info ); |
| 1927 | SendMessage ( mWndToolTips, TTM_UPDATE, 0, 0 ); |
| 1928 | } |
| 1929 | |
| 1930 | // See if any of the watches were updated by this inspect |
| 1931 | for ( i = 0; i < mWatches.Num(); i ++ ) |
| 1932 | { |
| 1933 | rvDebuggerWatch* watch = mWatches[i]; |
| 1934 | |
| 1935 | // See if the name matches the variable |
| 1936 | if ( watch->mVariable.Cmp ( temp ) ) |
| 1937 | { |
| 1938 | continue; |
| 1939 | } |
| 1940 | |
| 1941 | // Has the value changed? |
| 1942 | if ( !watch->mValue.Cmp ( temp2 ) ) |
| 1943 | { |
| 1944 | continue; |
| 1945 | } |
no test coverage detected