Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want to resize my window
#1
ok i want to resize a window just so i c a spot in the middle of the window like on the stock market they have a counter and i want to just have that be the only thing i c i dont ned the rest of the stuff and i have no idea if Qm can do it or not if you could help me that would be great right now i have it where it takes up a third of my desktop and thats no good for me i just want the numbers i used siz and mov but i think there has to be a way to just zoom in on that 1 spot
#2
Capture the control (rectangle that shows the number) using the "Find window or control' dialog (the second Drag image). Move it to the top-left corner of the window, and to the top of the Z order. Then resize the window.

int hwnd=id(??? "window name")
SetWindowPos hwnd 0 0 0 0 0 SWP_NOSIZE
siz 100 100 "window name"
#3
i tried this example but when it resizes the whole window the part i want is not visible.is there a way to cut out all but but the part iwant?
#4
insert

out hwnd

after first line. Is it 0?
#5
no it isn't?
#6
it is a 7 digit number
#7
If you don't use siz, you can see where finally is the control. Is it moved to the top-left corner of the window? If not, probably it is not direct child. Try this:

Code:
Copy      Help
int hwnd=id(??? "window name")
rep
,SetWindowPos hwnd 0 0 0 0 0 SWP_NOSIZE
,hwnd=GetParent(hwnd)
,if(GetWinStyle(hwnd)&WS_CHILD=0) break
siz 100 100 "window name"
#8
that did it ty vm 4 your help Big Grin


Forum Jump:


Users browsing this thread: 1 Guest(s)