You are here

[icp-slam.cpp] Get the auto-generated window handle

3 posts / 0 new
Last post
NYC
NYC's picture
[icp-slam.cpp] Get the auto-generated window handle

Hi, I am trying to modify icp-slam.cpp.

In icp-slam.cpp, "MapBuilding_ICP" function creates a window automatically to build map.

==========================================
        win3D = CDisplayWindow3D::Create("ICP-SLAM @ MRPT C++ Library", 600, 500);   <----------------------
        win3D->setCameraZoom(20);
        win3D->setCameraAzimuthDeg(-45);
              ..................

==========================================

When user closes the window, the application remains on the background.

This causes problem in my application.

I know how to use Windows API to get the window handle,

but I would like to know how to get the "window handle or window destruction message" by using member functions of win3D.

Is there a way to do so?

Thanks a lot.

jlblanco
jlblanco's picture
Hi, See this example for a

Hi, 

See this example for a cross-platform way to capture the destruction event. Also, there's a much simpler to way to check if any MRPT window is open: its ::isOpen() method.

 

Cheers,

JL

NYC
NYC's picture
Hi

Thanks, This helps.

Log in or register to post comments
Subscribe to Comments for "[icp-slam.cpp] Get the auto-generated window handle"