Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
i want to resize my window
#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"


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)