Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!gatech!udel!rochester!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!jem+ From: jem+@andrew.cmu.edu (Jonathan Miller) Newsgroups: comp.windows.ms.programmer Subject: How do you draw a resize bar? Message-ID: Date: 15 Mar 91 09:06:22 GMT Organization: Carnegie Mellon, Pittsburgh, PA Lines: 18 Hi all, I want to allow the user of my application to split the client window by dragging a bar. Ideally, I'd like this to work like Excel, where you grab a little black spot in the scroll bar, and a line tracks the mouse until the user lets go. The line that tracks the mouse looks the same as the border that tracks the mouse when you grab a window edge. How do you draw (and undraw) this line? It's not a line drawn in inverse color. There's some mask that seems to be drawn always in grey (I can't tell for sure on my monitor), with the bits in between drawn in inverse. If it were just inverse, then the line wouldn't show up patterned on a plain black or white background, right? Anybody done this? Thanks a lot! -Jonathan Miller jem@andrew.cmu.edu