How?
Please help!
Jim.
Ps: Here is the reason for why i need api calls..
Printable View
How?
Please help!
Jim.
Ps: Here is the reason for why i need api calls..
this should do the trick for you.... you need the handle to the window of course -- you can always find that by using the FindWindow API.
Code:Public Declare Function MoveWindow Lib "user32" (ByVal hWnd As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal bRepaint As Long) As Long
MoveWindow wHandle, 100, 100, 800, 600, True
yes i have the handle, because its My form :)
Thanks for the answer, i'll try out!
BAH!!!@!@?!
i cant belive it... i cant set the height property less than 405 twips.. so i cant close up the form to show ONLY the titlebar...
ehh.. looks like i need a HARDER thing.. so.. May i could "HIDE" the form's "CONTROL" area, so to show only the titlebar????
:confused: :confused: :confused: :confused: :confused: :confused:
Please reply!
Jim
I think the only way you are going to be able to fake this and make it look somewhat realistic would be to subclass the form and intercept the caption's draw/paint message -- whatever that might be. if you take and make your tool window sizable, you'll see that you can't even size it to make it appear the way you want. since the tool window has a smaller caption than a regular window, i don't think windows is smart enough to compensate for the extra space -- besides, a little grey space isn't going to hurt anything.
You're right, but... check out something:
In design mode, set a toolwindow's height property to 310.. then run the app.. the form looks like what i'm wanted.. then resize the form (with a timer or the same). then you cant set back to 310 twips via CODE...
W-H-Y? :mad:
here is my problem
Jim
and heres an another question, if i have the handle of a checkbox (hwnd) how can i hide it? (so i havent the control, only the hwnd)
thanks,
jim
PPLS! Somebody helps me P-L-E-A-S-E!!!
:( <- look, im a poor kid ..
if you can get the handle, then don't u know the name of the checkbox and therefore can just say chkMe.visible = false?
ive just the handle number of that cbox, not the control itself!
so theres no "mychkbox.anything = true" :)
anyway this box is a runtime generated control via api calls, because this button style checkbox is sits on the forms titlebar :)
Jim
ehhh... i'm _really_ cant figure out my problems, so pls help me, somebody! :/
Jim.