RE: Using tab controls, program crashes on Win98. Film at 11.
- Posted by Matthew Lewis <matthewwalkerlewis at YAHOO.COM> Apr 25, 2001
- 624 views
> -----Original Message----- > From: Jonas Temple [mailto:jktemple at yhti.net] > I have a program that I developed on my Win95 machine and it works > great. The program uses: > - Win32Lib > - Tab control with a list view in each tab item > > Run this program on Win98 and it crashes on closeWindow. Anyone seen > this strange and odd behavior? Caught this on film? Send it in to > "Stange and Unsolved MS Phenomenon". :) Sorry, hit send on the last without saying anything... This seems to be a bug in the TabControl code in the common controls DLL. It doesn't like getting the LVN_DELETEALLITEMS notification, which it gets just before a child listview item is destroyed. In SubProc, you can add the following right before the call to the tab control's default window proc (which I've included here): if window_type[id] = TabControl and iMsg = WM_NOTIFY then VOID = fetch( lParam, NMHDR_code ) if VOID = LVN_DELETEALLITEMS then return popSelf() end if end if returnValue( w32Func( xCallWindowProc, { window_func[id], hWnd, iMsg, wParam, lParam } )) Matt Lewis