Results 1 to 2 of 2

Thread: Dockable Windows...How??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 1999
    Location
    Dallas,TX
    Posts
    170

    Dockable Windows...How??

    I've got an app in the planning stages in which I would like to use a dockable window. This window will contain a treeview to display a small file structure. How do windows programs accomplish this feat?

    Thanks,
    Phil

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    From looking at the MFC source code, I figured that they implement their own method. It seems that there is no built-in way. You'll need to get the right messages (WM_MOUSEMOVE or WM_MOVE or such) and handle them in a way to check where the window is and set it's pos to the frame of the parent window if near enough. You'll need to implement your own way to do that.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

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