MCPcopy Create free account
hub / github.com/Kitware/VTK / vtkHandleMessage

Function vtkHandleMessage

Rendering/UI/vtkWin32RenderWindowInteractor.cxx:1007–1028  ·  view source on GitHub ↗

------------------------------------------------------------------------------ This is only called when InstallMessageProc is true

Source from the content-addressed store, hash-verified

1005//------------------------------------------------------------------------------
1006// This is only called when InstallMessageProc is true
1007LRESULT 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)))

Callers

nothing calls this directly

Calls 4

vtkHandleMessage2Function · 0.85
GetInteractorMethod · 0.45
RegisterMethod · 0.45
UnRegisterMethod · 0.45

Tested by

no test coverage detected