Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,

I write on a keyboard and mouse emulation program that receives input from a joystick or gampad. A lot of people have already written something like that. It is important to me if the game is running and I want to assign a setting in my program to another key or adjust the mouse speed, then I put a transparent overlay over the game to change the settings without having to leave the game. The problem is when I focus on the overlay window, it minimizes the game. it all looks very ugly and looks totally wooden. I want the game to remain macerated and it looks like everything is from a single source such as the nvidia overlay. The window remains maximized there. the mouse pointer from the game stops and one of the normal mouse pointer appears which allows me to make the settings in the nvidia overlay. if you close the overlay. then the game continues as normal. I've been looking for a solution for weeks and can't get anywhere. Does anyone have a solution for me?

What I have tried:

I have already tried to change the window setting with setwindowptr, etc. I either forgot something or did something wrong. i tried setparent. it does not work properly and jerky very ugly. I don't know anything about hooking in and since I work with C # and vb.net I don't know if I have any chances. I tried enablewindowhab but that's just the mouse and keyboard input. the window mines anyway. I don't know any more.
Posted
Updated 16-Apr-20 4:18am
v2

1 solution

Direct X window is nothing more but a regular "Windows OS" window and it obeys the standard Windows API. There is obviously some code in your program that minimizes it, as it is not a standard Window behavior - you need a special code for that. Bringing up the modal or modeless dialog or window above it will not minimize it by default. Modal dialogs will disable the parent window until dialog is dismissed. Direct X just draws on its surface.

Search your code for
WM_SIZE
message with
SIZE_MINIMIZED wParam
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900