Newsgroups: comp.windows.ms.programmer Path: utzoo!utgpu!watserv1!sunee!gpsteffl From: gpsteffl@sunee.waterloo.edu (Glenn Steffler) Subject: Re: Custom "cursors" Message-ID: <1991Apr2.050712.11082@sunee.waterloo.edu> Organization: Gold Disk Inc. References: <1991Apr2.102934.3290@waikato.ac.nz> Date: Tue, 2 Apr 1991 05:07:12 GMT Lines: 29 In article <1991Apr2.102934.3290@waikato.ac.nz> iam@waikato.ac.nz (Ian McDonald) writes: >I am writing an audio editor for Microsoft Windows. For each audio window >there are two "cursors". I want to be able to click on each cursor and then >drag it around (in similar style to a scroll bar dragging). A good solution (i.e. one that I will recommend but not sanction as a relief from world hunger) would be to integrate the cursors as a part of a window definition used to display an audio resource. The window function would handle the mouse down (capture mouse and do the appropriate work on mouse moves) and wait for mouse up. Keep the current cursor position in some window extra bytes, and integrate the cursors in the paint message. I don't recommend the separate windows (all of one bit wide) as they may not appear in front of the data if the data is the same colour (I suppose you can control that) and the windows must be moved every time the audio window is moved. Talk about having your cake eating it and then having your cake and eating it...I'm not sure what I mean here. Anyway, just say *NO* to extra windows!! :-) >Ian McDonald | (I had to follow up here as you said you could not reply to my mail, and I would thus not be sure you got it, get it?) -- Windows Sumo Wrestler "Bo doesn't know software" - George Brett --(Windows 3.0, a combination of modern moodring technology and voodoo)-- "I guess she had a way, of making every night seem bright as day" `I Don't Believe In Love` -Queensryche (Oper. Mindcrime) Glenn Steffler