| 553 | } |
| 554 | |
| 555 | void UpdateDisassembleView(HWND hWnd, UINT id, int lines, bool text = false) |
| 556 | { |
| 557 | // basic syntax highlighter and due richedit optimizations |
| 558 | int eventMask = SendDlgItemMessage(hWnd, id, EM_SETEVENTMASK, 0, 0); |
| 559 | SendDlgItemMessage(hWnd, id, WM_SETREDRAW, false, 0); |
| 560 | |
| 561 | if (text) |
| 562 | SetDlgItemTextW(hWnd, id, debug_wstr); |
| 563 | HighlightSyntax(hWnd, lines); |
| 564 | HighlightPC(hWnd); |
| 565 | |
| 566 | SendDlgItemMessage(hWnd, id, WM_SETREDRAW, true, 0); |
| 567 | InvalidateRect(GetDlgItem(hWnd, id), 0, true); |
| 568 | SendDlgItemMessage(hWnd, id, EM_SETEVENTMASK, 0, eventMask); |
| 569 | } |
| 570 | |
| 571 | void Disassemble(HWND hWnd, int id, int scrollid, unsigned int addr) |
| 572 | { |
no test coverage detected