| 449 | } |
| 450 | |
| 451 | void HighlightPC(HWND hWnd) |
| 452 | { |
| 453 | if (PCLine == -1) |
| 454 | return; |
| 455 | |
| 456 | FINDTEXT ft; |
| 457 | ft.lpstrText = ">"; |
| 458 | ft.chrg.cpMin = 0; |
| 459 | ft.chrg.cpMax = -1; |
| 460 | int start = SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_FINDTEXT, (WPARAM)FR_DOWN, (LPARAM)&ft); |
| 461 | if (start >= 0) |
| 462 | { |
| 463 | int old_start, old_end; |
| 464 | SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_GETSEL, (WPARAM)&old_start, (LPARAM)&old_end); |
| 465 | SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_SETSEL, (WPARAM)start, (LPARAM)start+20); |
| 466 | SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_SETCHARFORMAT, (WPARAM)SCF_SELECTION, (LPARAM)PPCF(DbgPC)); |
| 467 | SendDlgItemMessage(hWnd, IDC_DEBUGGER_DISASSEMBLY, EM_SETSEL, (WPARAM)old_start, (LPARAM)old_end); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | void HighlightSyntax(HWND hWnd, int lines) |
| 472 | { |
no outgoing calls
no test coverage detected