Hmmm, interesting. I am glad you are fluent in windose-ezz.
Looking at the code. It will bring it to the top but. Resize it to 200x200 at pos 0,0.
Am I looking at it wrong ?
I am looking to just big it up top level. So wouldn't it be possible to change about
ShowWindow&(important stuff)
GetWindowPos&(important stuff)
SetWindowPos&(important stuff)
I already have a trigger point with the program (not needing a keystroke to activate).
The newy part being GetWindowPos& or maybe including GetWindowSize& needed to
before executing SetWindowPos&
Windows may ignore the set command, since the window is already there. I really
never learned windows mid level programming. So please be kind. I got too many
other mid level and low level O/S's in my head. Very confusing at times.
I like where this is going, everybody including me might get another trick to put
in the bag.
BTW, where is the value for HWND_TOPMOST set ? Or is zero the right value ?
Sorry. I forgot to post the applicable CONST values for use for you:
CONST HWND_TOP = 0 'window at top of z order no focus
CONST HWND_BOTTOM = 1 'window at bottom of z order no focus
CONST HWND_TOPMOST = -1 'window above all others no focus unless active
CONST HWND_NOTOPMOST = -2 'window below active no focus
And we're not resizing the window; that 200,200 was just where I decided to place it on my desktop (200 pixels down and right from the top left corner.)
FUNCTION SetWindowPos& (BYVAL hWnd%&, BYVAL hWndInsertAfter%&, BYVAL X&, BYVAL Y&, BYVAL cx&, BYVAL cy&, BYVAL uFlags~&)
hWnd%& -- our _WINDOWHANDLE
hWndInsertAfter%& -- how we want it to display (On top of everything in this case)
X, Y -- where we want to window to move to, on our display
cx, cy -- resize options for the window, if we want to do so. Just leave them 0 to leave your window settings alone.
uflags -- The window sizing and positioning flags.
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setwindowpos -- You can get a good run down of those parameters and such from microsoft here.