Results 1 to 5 of 5

Thread: Anyone?: Resizing by dragging image

  1. #1

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719

    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!

  2. #2

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Anyone?
    No matter how fool-proof your program is, there will always be a better fool.

    Was a post helpful to you? Rate it!

  3. #3

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    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!

  4. #4
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    You can send the WM_NCLBUTTONDOWN message with one of these values as the wParam:
    VB Code:
    1. Private Const HTLEFT = 10
    2. Private Const HTRIGHT = 11
    3. Private Const HTTOP = 12
    4. Private Const HTBOTTOM = 15
    5. Private Const HTBOTTOMLEFT = 16
    6. Private Const HTBOTTOMRIGHT = 17
    7. Private Const HTTOPLEFT = 13
    8. 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

  5. #5

    Thread Starter
    Fanatic Member arsmakman's Avatar
    Join Date
    Dec 2001
    Location
    Leiden, Netherlands.
    Posts
    719
    Thanx
    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
  •  



Click Here to Expand Forum to Full Width