|
-
Jan 6th, 2002, 03:29 AM
#1
Thread Starter
Fanatic Member
Anyone?: Resizing by dragging image
I'm using a "Borderstyle = None"-Form, with images for Titlebar and frame. I want to know if it is possible when dragging one of the images the form will resize?
Oh, and another q, when you click the little icon in the left-upper corner of an app, you get a little menu (With Minimize, Maximize, Exit etc.). Can I make that manu popup when an image is clicked?
Last edited by arsmakman; Jan 6th, 2002 at 05:16 AM.
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
-
Jan 6th, 2002, 05:16 AM
#2
Thread Starter
Fanatic Member
Anyone?
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
-
Jan 6th, 2002, 09:48 AM
#3
Thread Starter
Fanatic Member
Is there just no-one that knows or no-one that wants to answer?
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
-
Jan 6th, 2002, 10:07 AM
#4
You can send the WM_NCLBUTTONDOWN message with one of these values as the wParam:
VB Code:
Private Const HTLEFT = 10
Private Const HTRIGHT = 11
Private Const HTTOP = 12
Private Const HTBOTTOM = 15
Private Const HTBOTTOMLEFT = 16
Private Const HTBOTTOMRIGHT = 17
Private Const HTTOPLEFT = 13
Private Const HTTOPRIGHT = 14
Use these with SendMessage in the MouseDown event of your images.
Remember that you first must make a call to ReleaseCapture (I suspect you use simular code to move the form when you hit your TitleBar).
Best regards
-
Jan 6th, 2002, 02:06 PM
#5
Thread Starter
Fanatic Member
No matter how fool-proof your program is, there will always be a better fool.
Was a post helpful to you? Rate it!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|