flat assembler
Message board for the users of flat assembler.
Index
> Windows > Window above the screen |
Author |
|
revolution 20 May 2022, 09:06
Windows has never allowed that.
Your option is to handle the mouse move message yourself and position the Window yourself. BTW: It is the same for many of the Linux window managers also. There is a lot of resistance to allowing the user to push the window off the screen without some special settings or keystrokes. But manual positioning still works if the app really needs to do it. |
|||
20 May 2022, 09:06 |
|
macomics 20 May 2022, 13:25
It is unclear why this is necessary at all. Isn't it easier to hide the window when it goes beyond the screen boundaries?
If you want the title to be displayed on the panel, then just set aplha to 0. Quote: SetLayeredWindowAttributes(hwnd, 0, 0, LWA_ALPHA); |
|||
20 May 2022, 13:25 |
|
Overclick 20 May 2022, 14:08
My window does not have the title at all But it have transparen background for different sort of animation layers above it.
I was thinking about switches or cutters or separate windows But all of them is looking too choppy and makes additional resizing headache. It is not big deal to manage mouse moving instead |
|||
20 May 2022, 14:08 |
|
Hrstka 20 May 2022, 15:27
Do you call DefWindowProc in handling WM_WINDOWPOSCHANGING and WM_WINDOWPOSCHANGED messages?
|
|||
20 May 2022, 15:27 |
|
Overclick 20 May 2022, 15:53
Quote:
Do I need it? |
|||
20 May 2022, 15:53 |
|
Overclick 21 May 2022, 07:04
I give up with SC_DRAGMOVE. My own manager works perfect.
Code: .dragwindow: invoke SetCapture,[hWnd] mov [GuiLbuttonStatus],1 mov [GuiLbuttonUp],.dragwindow.end mov [GuiLbuttonContinueDown],.dragwindow.continue invoke GetCursorPos,MouseTrackOld invoke GetWindowRect,[hWnd],GuiDragwindowRect xor rax,rax ret .dragwindow.continue: invoke GetCursorPos,MouseTrack mov r8d,[MouseTrack.x] mov r9d,[MouseTrack.y] sub r8d,[MouseTrackOld.x] sub r9d,[MouseTrackOld.y] add r8d,[GuiDragwindowRect.left] add r9d,[GuiDragwindowRect.top] invoke SetWindowPos,[hWnd],0,r8,r9,0,0,\ SWP_SHOWWINDOW or SWP_NOSIZE xor rax,rax ret .dragwindow.end: mov [GuiLbuttonStatus],0 invoke ReleaseCapture xor rax,rax ret |
|||
21 May 2022, 07:04 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.