Join Date: Sep 2013 
					Posts: 5 
					User-Rating: 
					
				 
			 | 
			
				Quote from  Please dont include CPP files. Add them to your project files in Visual Studio.  understand new question
 
 TEXT Code: HRESULT APIENTRY myEndScene(LPDIRECT3DDEVICE9 pDevice) { 	if (Create) 	{ 		D3DVIEWPORT9 viewP; 		pDevice->GetViewport(&viewP); 		POINT cpos; 		GetCursorPos(&cpos); 		ScreenToClient(GetForegroundWindow(), &cpos);	// Coors Relative to Foreground Windows     		static bool initGui = true; 		if (initGui) 		{ 			initGui = false; 			Application::Instance()->Create(new Drawing::RendererDX9(pDevice)); //create Application 			Application::Instance()->Run(std::shared_ptr<Form>(new MainForm())); //set our mainform 			Application::Instance()->Enable(); //enable GUI 		}   		if (GetAsyncKeyState(VK_INSERT) & 1) { 			if (!MenuActive) { 				Application::Instance()->Enable(); 				MenuActive = true; 			} 			else { 				Application::Instance()->Disable(); 				MenuActive = false; 			} 		} 		HWND hwnd=FindWindow(0,"Warface");   		ShowWindow(hwnd,SW_SHOWDEFAULT); 		UpdateWindow(hwnd); 		MSG msg; 		ZeroMemory(&msg, sizeof(msg)); 		if (PeekMessage(&msg, 0, 0, 0, PM_REMOVE)) 		{ 			input.ProcessMessage(&msg); 			if (msg.message == WM_QUIT) 				return pEndScene(pDevice); 			TranslateMessage(&msg); 			DispatchMessage(&msg); 		} 		else 		{ 			Application::Instance()->GetRenderer()->Begin(); //begin rendering 			Application::Instance()->Render(); //render gui 			Application::Instance()->GetRenderer()->End(); //end rendering 		}     	} 	return pEndScene(pDevice); } 
  Here is the code,Can Draw the MENU now. but i can move my mouse。。。。。
  				
  
			 |