MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / torque_gethwnd

Function torque_gethwnd

Engine/source/cinterface/cinterface.cpp:408–417  ·  view source on GitHub ↗

retrieve the hwnd of our render window

Source from the content-addressed store, hash-verified

406#if defined(TORQUE_OS_WIN) && !defined(TORQUE_SDL)
407 // retrieve the hwnd of our render window
408 void* torque_gethwnd()
409 {
410 if (PlatformWindowManager::get() && PlatformWindowManager::get()->getFirstWindow())
411 {
412 Win32Window* w = (Win32Window*) PlatformWindowManager::get()->getFirstWindow();
413 return (void *) w->getHWND();
414 }
415
416 return NULL;
417 }
418
419 // directly add a message to the Torque 3D event queue, bypassing the Windows event queue
420 // this is useful in the case of the IE plugin, where we are hooking into an application

Callers

nothing calls this directly

Calls 2

getFunction · 0.50
getFirstWindowMethod · 0.45

Tested by

no test coverage detected