------------------------------------------------------------------------------ This is only called when InstallMessageProc is true
| 1005 | //------------------------------------------------------------------------------ |
| 1006 | // This is only called when InstallMessageProc is true |
| 1007 | LRESULT CALLBACK vtkHandleMessage(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) |
| 1008 | { |
| 1009 | LRESULT res = 0; |
| 1010 | vtkRenderWindow* ren; |
| 1011 | vtkWin32RenderWindowInteractor* me = 0; |
| 1012 | |
| 1013 | ren = (vtkRenderWindow*)vtkGetWindowLong(hWnd, sizeof(vtkLONG)); |
| 1014 | |
| 1015 | if (ren) |
| 1016 | { |
| 1017 | me = (vtkWin32RenderWindowInteractor*)ren->GetInteractor(); |
| 1018 | } |
| 1019 | |
| 1020 | if (me && me->GetReferenceCount() > 0) |
| 1021 | { |
| 1022 | me->Register(me); |
| 1023 | res = vtkHandleMessage2(hWnd, uMsg, wParam, lParam, me); |
| 1024 | me->UnRegister(me); |
| 1025 | } |
| 1026 | |
| 1027 | return res; |
| 1028 | } |
| 1029 | |
| 1030 | #ifndef MAKEPOINTS |
| 1031 | #define MAKEPOINTS(l) (*((POINTS FAR*)&(l))) |
nothing calls this directly
no test coverage detected