Search the Community
Showing results for tags 'winapi borderless window'.
-
So this is a part of my code: _WinAPI_SetWindowLong($wh, $GWL_STYLE, 0x94000000) _WinAPI_SetWindowLong($wh, $GWL_EXSTYLE, 0x00040000) _WinAPI_UpdateWindow($wh) Now, my problem with some windows like games using 3D as content, I think it's because I directly overwrite any other flags that these windows have by totally replacing the values at the STYLE and EXSTYLE indexes, with these. It does the trick of removing the title, border and making the window appear on top of the taskbar when covering the whole screen, but how can I instead apply the flag for removal of title and border + the ontop flag, rather than completely overwriting the current flags? Just an example; if the flags for style are 2, 4, 8, e.g. where 8 is title and border, the windows may have values of 12, 14, e.g. so then I'd like to remove 8 so we get 4 and 2 respectively; instead of doing like I currently do, totally resetting the value. I am not quite sure how I should use _WinAPI_GetWindowLong($wh, $GWL_STYLE) then how do I remove the flag for title and border? Hmm... *Edit* The reason for this thread is because with my current code windows act weird, the 3D content acts like there is a title and border, so the mouse cursor has an offset, i.e. I have to click below a button in the game to actually click it, since with the title offset the game then interprets the mouse being over the button, while without the title the height shifts so there is a loss of visual sync between 3D and mouse pointer. Also, do I really need _WinAPI_UpdateWindow at all? Just curious, not sure what it does exactly.