INT WINAPI wWinMain( HINSTANCE hInst, HINSTANCE, LPWSTR, INT ) { d3dGraphics.InitD3D(app.GethWnd()); //net.ClientInit(app.GethWnd(), "localhost"); ApplicationSetCallbackKeyboard(KeyPress); ApplicationSetCallbackFrameRender(Render); ApplicationSetCallbackMsgProc(MsgProc); app.Run(); return 0; }
void CALLBACK KeyPress( UINT nChar, bool bKeyDown, bool bAltDown) { switch (nChar) { case VK_ESCAPE: { SendMessage( app.GethWnd(), WM_CLOSE, 0, 0 ); break; } } }