MCPcopy Create free account
hub / github.com/carbonengine/trinity / StaticWndProc

Method StaticWndProc

trinity/UI/Tr2MainWindow_Windows.cpp:361–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359
360
361LRESULT Tr2MainWindow::StaticWndProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
362{
363 CCP_STATS_ZONE( __FUNCTION__ );
364
365 Tr2MainWindow* window = nullptr;
366 if( msg == WM_CREATE )
367 {
368 window = reinterpret_cast<Tr2MainWindow*>( reinterpret_cast<CREATESTRUCTW*>( lParam )->lpCreateParams );
369 }
370 else
371 {
372 window = reinterpret_cast<Tr2MainWindow*>( GetPropW( hwnd, L"Tr2MainWindow" ) );
373 }
374
375 if( window )
376 {
377 return window->WndProc( hwnd, msg, wParam, lParam );
378 }
379 else
380 {
381 return DefWindowProcW( hwnd, msg, wParam, lParam );
382 }
383}
384
385LRESULT Tr2MainWindow::WndProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam )
386{

Callers

nothing calls this directly

Calls 1

WndProcMethod · 0.80

Tested by

no test coverage detected