home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!apollo.hp.com!netnews
- From: nelson_p@apollo.hp.com (Peter Nelson)
- Subject: Is it really this bad, or is it just me?
- Sender: usenet@apollo.hp.com (Usenet News)
- Message-ID: <Bs3Mpp.5ML@apollo.hp.com>
- Date: Tue, 28 Jul 1992 12:29:49 GMT
- Nntp-Posting-Host: c.ch.apollo.hp.com
- Organization: Hewlett-Packard Corporation, Chelmsford, MA
- Lines: 60
-
-
- I'm a beginning Windows programmer. Right now I'm learning
- message handling in the context of scroll bars using Borland
- C/C++ 3.1..
-
- I have a simple "hello windows"-ish app with a vertical
- scroll bar. In my WndProc I've got a case statement
- for WM_VSCROLL, and sub-cases for SB_LINEUP, SB_LINEDOWN, etc.
-
- If I set a breakpoint with TDW at the handler for, say, SB_LINEDOWN
- and then "run" and click on the "down" button on the scrollbar
- it hits the breakpoint just as it should. But if I "run" from
- there it hits it again, and again (sometime 100's of times)!
- (i.e., it gets **LOTS** of scrolling messages from one click)
-
- It doesn't do anything weird when I'm NOT in TDW.
-
- So I called Borland Tech Support and asked for advice and asked
- if there was any interaction between TDW and the mouse or any
- known problem breaking in scroll-message handling code. They said
- "no".
-
- So I made an increment variable to ++ inside my SB_LINEDOWN handler
- and displayed it in the window. When NOT in TDW it increments once
- for every click on the "down" button. But if I AM in TDW I only
- have to click *once* on the "down" button and thereafter I can increment
- it by just hitting F9 ("run") in TDW!!!
-
- So I called the Borland 900 ($$$) number and the guy there (Gary
- Johnson) said "of course" there's a problem debugging scroll events
- with TDW, because of some weird interaction with the mouse!! He
- didn't understand why they didn't know about it at regular tech
- support.
-
- So what's the story?
-
- Does Borland only put it's smart people on the 900 number?
-
- Will they give you the wrong answer for free (your dime, though),
- but you have to pay $20 ($2/hr X 10 minutes) to get the right
- answers?
-
- It certainly seems like there's a problem with TDW and debugging
- scroll events so how do people do it? Is there a workaround?
-
- Is there still anything *I* could be doing wrong?
-
- Does the Microsoft debugger do this?
-
-
- Thanks, see part II . . . .
-
-
- ---peter
-
-
-
-
-
-
-