HDTenEightyP/NetNews huggingface dataset:
Subject: Re: WHAT THE FUCK!?: Memory: 8,742KB Free, System Resources: 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Sat, 9 Jan 1993 17:37:21 +0000

In article <C0KF1y.Eqz@newsserver.technet.sg> ipser@solomon.technet.sg writes:

>
>Well, I've narrowed it down. I'm NOT running out of memory, my memory
>requirements are in fact quite modest. I'm running out of "system resources".
>Just what are these system resources that I'm exhausting?
>
>It is not the case that I have a bunch of icons, pens, brushes or what
>have you. I have only a handful of each and I always deallocate them when
>done. That is not the problem.
>
>I DO have a number of windows proportional to the size of the document. In 
>the current case, something like 650 windows. Larger documents would require
>still more windows and the current test is rather modest in size and
>complexity compared to what I envision the user doing.
>
> [ stuff deleted ]
>Help me, please!
>

You're running out of space in what's called the "User" segment.  This is a
64k area of memory shared by all the running applications in which
information about windows is stored.  There's no way to expand this.

You got *650* windows!!!!  Dare one ask "why"?

This is your problem.  You've *got* to get rid of these windows!  10 or 20
windows, fine.  650 - no way!

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
From: s34090e@kaira.hut.fi (Petri Taavila)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Passing information from dialogs ?
Date: 7 Jan 93 14:11:27 GMT
Reply-To: s34090e@kaira.hut.fi (Petri Taavila)
Distribution: inet
Organization: Helsinki University of Technology, Finland
NNTP-Posting-Host: kaira.hut.fi

What is the "best" way to pass information from modal
dialogbox to its parent window if there are many
different controls in the dialogbox?

All kind of suggestions are welcome.

//pete

! Petri Taavila ! petri.taavila@hut.fi! Nainen, poliisi ja taxi, ei     !
! t  5673492    !                     ! niit{ koskaan tarvitessa n{y.   !
! k  5061553    !                     ! - Tuntematon kotimainen artisti !
Newsgroups: comp.os.ms-windows.programmer.misc
From: louis@obelix.newshost.uwo.ca (Chan Louis)
Subject: Borland "BorDlg" button problem 
Organization: /m4/student/1985/louis/.organization
Distribution: comp.os.ms-windows.programmer.misc
Date: Sat, 9 Jan 1993 03:10:09 GMT


	I am using Borland C++ 3.1 with the Dialog class BorDlg, which is 
the Borland Window Custom Controls.  I know how to create those Ok, Cancel
nice looking Custom Control buttons.  My problem is that I also
want to create the same bitmmaped buttons (New, Change, Delte) as in the
Resource Workshop.  Is there a way to create those buttons as creating
those OK, Cancel buttons ?

Thanks in advance.

Louis
Newsgroups: comp.os.ms-windows.programmer.misc
From: mjb@netcom.com (Martin Brown)
Subject: painting a dialog control?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 6 Jan 1993 21:42:00 GMT

Currently, I'm trying to paint a bitmap into a dialog control 
(a group pane with no text? Neither the dialog editor or the 
.dlg file tell me what type of pane a control is... damn it).

The dialog is contained in, and called up from a dll.

For initial testing, I'm trying to do a flood fill to the 
control to avoid the seemingly more complicated task of 
painting in a bitmap.

Currently, the dialog is opened and all the controls are drawn,
but the FloodFill is not occuring.

This is the code that I'm using to do the FloodFill:

     bmapnhWnd = GetDlgItem(hDlg, BMapPane);
     bmapnhDC = GetDC(bmapnhWnd);
     hBrush = CreateSolidBrush(RGB(0, 0, 255));
     SelectObject(bmapnhDC, hBrush);
     FloodFill(bmapnhDC, 3, 3, RGB(0, 0, 0));
     ReleaseDC(hDlg, bmapnhDC);
     DeleteObject(hBrush);

I have inserted this code into the switch/case WM_INITDIALOG:  ,
the only message that is responded to.  Since this seems to be
responsible for getting the dialog correctly drawn, now, I put my 
code here.

Is my code wrong?
Have I put it in the wrong place?

This dll has the following functions EXPORTed:

     WEP
     OpenSignOn
     CloseSignOn
     StartupDlgProc    <<  holds the WM_INITDIALOG and my code

Any ideas would be appreciated?
Any tips for when I finally try to paint a bitmap into the control?

Thanx for your help!



-- 

                                   - mjb -

                                mjb@netcom.com

From: guanth@hpsgm2.sgp.hp.com (Brian GUAN)
Date: Mon, 11 Jan 1993 09:45:04 GMT
Subject: Help ! How to configure debug terminal ?
Organization: HP Singapore Notes-Server
Newsgroups: comp.os.ms-windows.programmer.misc

Hello world,

  I am trying to set up a debug terminal for my PC, when I am debugging
  programs developed in MS C/C++ 7.0, SDK 3.1 in Windows 3.1, on top of
  DOS 5.0.  I intend to use an old (but working) HP Terminal, model 2382A,
  as the debug terminal.

  Just wondering what kind of serial-cable do I need, somebody suggested
  a null-modem cable, but it doesn't seems to work.  I tried regular
  serial cable, but no luck too.  Any Idea ?

  I am using a 486/66 DX2 with 16 Meg RAM, and I intend to use COM1: to
  connect to the terminal as my mouse is connected to COM2.

  Any help or experience to share will be much appreciated.

=============================================================================
   |_   --+--    ---   addr:     APD SLC/R&D, HPSG
.|_|__   -+-    | + |            1150 Depot Road Singapore 0410   	  
   |    --+--   | ^ |  hpdesk:   Brian GUAN / HPSGIT/72  
 / | |   /|\     ---   internet: brian@hpsglbg.sgp.hp.com 
  __/   / | \  / \`_ \ telnet:   520-2905 tel:(+65)279-2905 fax:(+65)274-3431
=============================================================================
From: ee_d270@ceres.kingston.ac.uk (Richard D Knight)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Displaying Bitmaps with OWL
Date: 8 Jan 1993 16:24:06 -0000
Organization: Kingston University, Kingston-upon-Thames
Distribution: world
NNTP-Posting-Host: ceres.kingston.ac.uk


Hi

I want to display 3 bitmaps on the main window of my application.
Can anyone tell me how to do this.

Thanks

ee_d270@king.ac.uk

Newsgroups: comp.os.ms-windows.programmer.misc
From: turre@pcuf.fi (Jarkko Turunen)
Subject: Enabling the first and only window in MFC
Organization: The PC-users of Finland
Date: Wed, 6 Jan 1993 16:52:47 GMT

I want user not to be able to run many instances of my application. So if
he tries to run another instance my program should bring the first
instance to top. I've been trying it with this following code:
 
BOOL CMyApp::InitInstance()
{
    If( m_hPrevInstance != NULL )
    {
        m_pMainWindow->BringWindowToTop();
        return FALSE;
    }
    else
    {
        m_pMainWindow = new CMyWindow;
        m_pMainWindow->ShowWindow( m_nCmdShow );
        m_pMainWindow->UpdateWindow();
        return TRUE;
    }
}
 
The first instance runs fine and no other instances are displayed or created
but the first windows is not brought to the top.
Newsgroups: comp.os.ms-windows.programmer.misc
From: rgarner@TRL.OZ.AU (ROSS GARNER)
Subject: VB2 bug?
Summary: Losing pen data
Organization: Telecom Research
Date: Fri, 8 Jan 1993 00:49:27 GMT

I have found a problem when using some API functions with VB2. The code is 
included below, but this is what happens:

1. I create a pen and brush indirect that I can reference anywhere in 
the program by using the assigned handle.

2. I then draw a rectangle

3. I then draw another rectangle in a dirrent location

At this point everything is OK

4. If I include the VB command ForeColor=stuff between drawing the 2 
rectangles then the pen information is lost and the second rectangle 
uses a different pen.

Questions:  Why does this happen????
	    How can the forecolor command destroy? my pen indirect?
	    Is it a bug?
	    Has anyone else come across this?
	    What else destroys? my pen indirect?

Ross Garner
Telecom Research Laboratories


The Code:

DefInt A-Z
Dim lp As pointapi
Dim Brush As LogBrush
Dim pen As LogPen

Sub Command1_Click ()
    Cls
    scalemode = 3           'set Vb mode to pixels

    '*** make brush ****
    Brush.lbstyle = BS_HATCHED
    Brush.lbcolor = RGB(255, 255, 5)
    Brush.lbhatch = HS_FDIAGONAL
    
    '****make pen******
    lp.px = 4           'set width of line
    pen.lopnstyle = PS_dash
    pen.lopnwidth = lp
    pen.lopncolor = RGB(0, 0, 0)
    
    '*********select brush and pen*******
    hBrush = CreateBrushIndirect(Brush)
    hPen = CreatePenIndirect(pen)
    ok = selectobject(hDC, hBrush)
    ok = selectobject(hDC, hPen)
    
    ok = rectangle(hDC, 10, 10, 100, 100)       'draw first rect

    forecolor = RGB(34, 34, 34)

    ok = rectangle(hDC, 200, 10, 300, 100)         'draw second rect
    
    '*********delete objects**********
    ok = DeleteObject(hBrush)
    ok = DeleteObject(hPen)

End Sub

The end.........
Ross Garner
Newsgroups: comp.os.ms-windows.programmer.misc
From: jeff@tct.com (Jeff Witzer)
Subject: Circumnavigating Borland WM_CTLCOLOR trap...
Date: Wed, 6 Jan 1993 22:10:09 GMT
Organization: TC Telemanagement, Clearwater, FL

If I understand it correctly, Borland style dialog controls do not receive 
WM_CTLCOLOR messages.  I would like to know if there are, then, ways to 
accomplish the following:

1)  I would like to be able to change the color of text writen to the dialog
    face.  I had hoped to use static controls but have found no way to change
    the text color (no WM_CTLCOLOR messages).  I am currently using OWNERDRAW
    controls and calling FillRect() to gray the background, SetTextColor() to
    color the text, and DrawText() to display the text.  Since OWNERDRAW 
    controls first clear to white, I am receiving a lot of flicker when I
    update the screen.  Is there a better way to do this, or, at least, can I
    get Windows to clear OWNERDRAW controls to gray?
    
2)  I would like to be able to change the color of text written to a Borland 
    style button's face (or change the button's face color) but, despite what
    Petzold says, I don't receive a WM_CTLCOLOR message (thanks to Borland).
    Is an OWNERDRAW button the best way to go?  I assume I would have to draw
    the 3 dimentional shading (or does Windows do this for me?) and would have
    to deal with the control going white as in problem #1.  Any advice?
    
3)  (Unrelated to WM_CTLCOLOR)  First a warning...  What I am about to ask
    goes against the basic purpose of Windows programming practices.  If you
    have a weak stomach, do not read on.  What is the best way to have an
    application completely take over the machine ...on purpose, I mean.  The
    system I am writing is to be completely unstoppable due to its 
    responsibilities.  It will be loaded and run from win.ini and Windows will
    be started by autoexec.bat.  I would also like to be able to reboot the 
    machine when the user attempts to close the application.  I believe I have
    the code to do this.  Is there something I'm missing (besides common 
    sense)?
    
Thanks,

jeff@tct.com    
    
    

Newsgroups: comp.os.ms-windows.programmer.misc
From: tp847807@ironwood.canberra.edu.au (Robert A. Nader)
Subject: Bitmap on desktop
Organization: Info Sci & Eng, University of Canberra, AUSTRALIA
Date:  8 Jan 93 05:48:40 GMT

I`m writting a win-app with BC++ 3.1 ( using OWL ) and would like
the application to start up by displaying a bitmap that covers the whole
desktop with a modeless dialog box on top ( exiting the app is to be done
with an accelerator ).  Thus, I do not want the window container at all
on the screen.  Could someone please show me how this can be done and
possibly send me some C or C++ sketch-code for the bitmap part.

A reply would be greatly appreciated.


/*---------------------------------------------------------------------------
See ya,
Robert.

UG Bachelor of Arts in Computing Studies
University of Canberra, Australia.

Internet: tp847807@fir.canberra.edu.au
voice: 61-6-254-67-53
---------------------------------------------------------------------------*/
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: .ICO file format
From: dewerk@yosemite.csufresno.edu (<< Dragon >>)
Date: 12 Jan 93 18:53:43 PST
Distribution: world
Organization: California State University, Fresno

->Newsgroups: comp.os.ms-windows.programmer.misc
->From: tmc@spartan.ac.BrockU.CA (Tim Ciceran)
->Subject: .ICO File Format Specifications
->
->Does anyone happen to have the Windows .ICO file format specifications
->handy? I understand that the September issue of the Microsoft Systems
->Journal has this listed in an article concerning resource file formats,
->but I've been unable to find the issue anywhere.
->
->I'm basically interested in converting .ICO files to alternative bitmap
->formats, so any insights would be particularly helpful.
->
->Thanks in advance,
->
->TMC

look at the PC Magazine January 26, 1993 issue...  the article is on p.318
"A Look Inside Windows Icons, Part 1"

if you still wish the info sent to you let me know and i'll email it to you...

 -- Paul-Joseph

                                * - * - *

Paul-Joseph "Dragon" de Werk        | God grant me the SERENITY to accept
Department of Computer Science      | the things I cannot change, the
California State University, Fresno | COURAGE to change the things I can,
dewerk@csufres.CSUFresno.EDU        | and the WISDOM to know the difference.

HELLO!  I'm a .signature virus! Join in and copy me into yours!

Newsgroups: comp.os.ms-windows.programmer.misc
From: jca17@cl.cam.ac.uk (J.C. Ashworth)
Subject: Toolbar Support Uploaded
Organization: U of Cambridge Computer Lab, UK
Date: Tue, 12 Jan 1993 19:53:43 GMT

I have now uploaded my toolbar and toolbar button support classes to
ftp.cica.indiana.edu.

I have put them in a .zip file (toolbar2.zip) in /pub/pc/win3/uploads.
What happens to them now is not my problem.

Please feel free to criticise my code (constructively!) - I want as
much criticism as I can get. Let the red ink flow!

There is a request for help in the compile.wri file. Please help me
out if you can.

Thanks.
           ______________               _____________
          /             /\             /            /\        Julian Ashworth
         /_____    ____/ /            /   _____    / /        Magdalene College
          \___/   /\ __\/            /   /\___/   / /         Cambridge
             /   / /                /   /_/__/   / /          England
            /   / /  _________     /            / /
  __       /   / /  /        /\   /   _____    / /            jca17@phx.cam.ac.uk
 /  \_____/   / /  /   _____/ /  /   /\___/   / /
 \           / /  /   /\____\/  /___/ /  /___/ /
  \_________/ /  /   / /        \___\/   \____/
   \________\/  /   /_/___ 
               /         /\ 
              /_________/ /     "It's great way to steal a car, but where do we get a jet-pac?"
              \_________\/
Newsgroups: comp.os.ms-windows.programmer.misc
From: Steve_Goyette@mindlink.bc.ca (Steve Goyette)
Subject: Undefinied Dynalink ... The Sequel
Organization: MIND LINK! - British Columbia, Canada
Date: Fri, 8 Jan 1993 01:09:05 GMT

Sorry, but I think that my editor screwed up the code fragment, so here it is
again:

        char szPrinter[64],
szSysDir[128],szFullDriver[256],*szDriver,*szDevice,*szOutput;
        HANDLE hDriver;
        DEVMODE DevMode;
        LPFNDEVMODE lpDeviceMode;

        GetProfileString("windows","device","",szPrinter,64);
        szDevice = strtok(szPrinter,",");
        szDriver = strtok(NULL,",");
        szOutput = strtok(NULL,",");

        GetSystemDirectory(szSysDir,128);
        lstrcpy(szFullDriver,szSysDir);
        lstrcat(szFullDriver,"\");
        lstrcat(szFullDriver,szDriver);
        lstrcat(szFullDriver,".DRV");

        hDriver = LoadLibrary(szFullDriver);
        if (hDriver != NULL)
        {

                lpDeviceMode =
(LPFNDEVMODE)GetProcAddress((HINSTANCE)hDriver,"ExtDeviceMode");
                if (lpDeviceMode)
                        (* lpDeviceMode)
(HWindow,(HINSTANCE)hDriver,&DevMode,szDevice,szOutput,NULL,NULL,DM_PROMPT |
DM_UPDATE);
        }
        else
                MessageBox(HWindow,"Could not load driver
file.","Error",MB_OK | MB_ICONEXCLAMATION);

--
------------------------------------------------------------------------------

Steve Goyette                    |       Email : Steve_Goyette@MindLink.BC.CA
Software Engineer                |       Cserve: 71763,1435
Abstract Automation Limited      |       Phone : (604) 421-8864
                                 |       Fax   : (604) 421-7722 (Call first)
-------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: oberto@genes.icgeb.trieste.it (Jacques Oberto)
Subject: WinTech Magazine source listings ?
Organization: ICGEB
Date: Tue, 12 Jan 1993 17:08:23 GMT

Hi all!

Just wondering if anyone knows where on the net one
can find the source code listings of WinTech Magazine.
I only found listings up to the month of August, 1992
at gatekeeper.dec.com in the directory:
  .2/micro/msdos/win3/uploads/wtek***
Alternatively, could some kind soul please upload the
newer ones to ftp.cica.indiana.edu ?
Beginners such as me would benefit greatly!
 
Thanks 
 
Jacques



-- 
Jacques Oberto  <oberto@genes.icgeb.trieste.it>
Organization: Penn State University
Date: Wed, 6 Jan 1993 13:44:03 EST
From: Christopher Sacksteder <CJS@psuvm.psu.edu>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Converting bitmaps to icons

In article <C0G1n2.ICr@knot.ccs.queensu.ca>, tarun@psyclops.psyc.queensu.ca
(Tarun Kripalani) says:

>Is there a way for one to convert bitmaps to icons?

I've done this a couple of times using the "capture" feature of an icon
editor to grab the pixels displayed by a different application (whatever
it takes to show a .bmp or .gif).  What you use to display the .bmp might
have to shrink the image first.  Sometimes colors get mapped oddly.

I prefer "IconMaster" by the (deceased) Phillip A. Kaufman.
Newsgroups: comp.os.ms-windows.programmer.misc
From: pkarrer@bernina.ethz.ch (Peter Karrer)
Subject: Problem with SetWindowsHookEx
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Fri, 8 Jan 1993 20:27:25 GMT

I am trying to intercept Windows WM_CREATE, WM_DESTROY etc messages.
Obviously, what I need is a SetWindowsHookEx(WH_CBT or WH_CALLWNDPROC, ..).

At first sight, my code works quite well, but...
When I start MS Excel 4.0, it gives me a GPF at 0002:2995 in KRNL386.EXE.
When I start MS Word 2.0a, it gives me a GPF at 00DB:01BD in WINWORD.EXE.
When I start any other application, everything looks fine. This includes
programs that use Windows hooks themselves, like Borland's WinSight.

Using SetWindowsHookEx with WH_GETMESSAGE, WH_MSGFILTER etc is no problem,
but these don't intercept the messages I need (WH_DEBUG crashes, however).

Am I overlooking something obvious, or is it just that the problematic
applications are from Microsoft? (:-)

This is the essential part of my code (TPW 1.0):

LIBRARY HookDLL;

  USES
    WinProcs, WinTypes, Win31;

  VAR
    hookH: HHook;
    hookProcInst: TFarProc;

  FUNCTION HookProc(code: INTEGER; wParam: WORD; lParam: LONGINT): LONGINT;
           EXPORT;
  BEGIN {do nothing, just call the next hook}
    HookProc := CallNextHookEx(hookH, code, wParam, lParam);
  END;

  {...}

BEGIN
  {...}
  hookProcInst := MakeProcInstance(@HookProc, hInstance);
  {Don't think MakeProcInstance is really necessary for EXPORT procs...}
  hookH := SetWindowsHookEx(WH_CBT, THookProc(hookProcInst), hInstance, 0);
END.

-- 
Peter Karrer                                   pkarrer@bernina.ethz.ch
Newsgroups: comp.os.ms-windows.programmer.misc
From: davc@r-node.pci.on.ca
Subject: Help : Window programming
Organization: R-node Public Access Unix - 1 416 249 5366
Date: Thu, 7 Jan 1993 15:10:21 GMT

	I am learning to write program for MS Window. Can anyone
	suggest some good books, tips or info? I am using 
	Borland C++. Thank you in advance.

Newsgroups: comp.os.ms-windows.programmer.misc
From: jcp29389@uxa.cso.uiuc.edu (I Spike - Therefore I Am)
Subject: Windows programs and text output  HELP!
Organization: University of Illinois at Urbana
Date: Wed, 6 Jan 1993 03:59:32 GMT

is there any way to display text in a window besides using TextOut?

perhaps even a way to display formatted text, or is the window always in 
graphics mode therefore making me to create my own functions for displaying
such text and updating the current position (even working with newlines)?

any help would be appreciated.  please email responses.

-- 
   _/    _/   _/_/_/		Jay Pardee
  _/    _/     _/		pardee@cs.uiuc.edu	University of Illinois
   _/_/     _/_/_/					 Urbana-Champaign
From: salmeniu@robocop.cs.hut.fi (Jaakko J Salmenius)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Microsoft ctl3d library
Date: 7 Jan 1993 10:57:30 GMT
Organization: Helsinki University of Technology, Finland
Distribution: inet
Reply-To: salmeniu@niksula.hut.fi (Jaakko J Salmenius)
NNTP-Posting-Host: robocop.cs.hut.fi

In article <jtaylor.12.725136642@dseg.ti.com> jtaylor@dseg.ti.com (Jeff Taylor) writes:
>	Can these by used by Borland C++ programmers? Are they compatible, 
>or only an extension of exsisting Microsoft tools?

I didn't have any problems with BC++ 3.1. Actually I didn't have to give
a special hook function to OpenFileDialog function. The automatic subclassing
did all the work.

	Jaakko
--
Jaakko Salmenius	| Helsinki University of Technology
salmeniu@niksula.hut.fi	| The believable ski heroes, at least in my opinion,
phone +358 0 805 5951	| are the ones who ski the extreme and watch Star Trek.
Newsgroups: comp.os.ms-windows.programmer.misc
From: rryan@panix.com (Rob Ryan)
Subject: Re: DebugOutput: Unresolved External error...
Organization: Panix, NYC
Date: Tue, 12 Jan 1993 03:13:21 GMT

In <9301112109.AA06983@deepthought.cs.utexas.edu> pugsley@h32.nswc.navy.mil (Don Pugsley) writes:

>My linker cannot find DebugOutput (L2029: Unresolved External)... a search
>of all files in the \WINDEV tree finds NO occurences except DBAPI.TXT and
>WINDOWS.H!  I am running the 3.1 debug version, have #included toolhelp.h
>and windows.h, and have tried linking with OLDNAMES.LIB as suggested by the
>Error Reference section on L2029.  Where is the code for this function
>supposed to be? I am sure this is a simple problem but I am very
>frustrated!  Thanks...

I have a line

  IMPORTS   _DebugOutput=KERNEL._DebugOutput

in my .DEF file and all is well.  It's not documented anywhere that I know of,
but it works.

-- 
 Rob Ryan
    rryan@panix.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: steven@netcom.com (Steven Nelson)
Subject: Re: LB_ADDSTRING Redrawing
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Sat, 9 Jan 1993 08:36:35 GMT

In article <1993Jan9.011837.22185@delfin.com> dan@delfin.com (Dan Stickel) writes:
>I have created an owner draw listbox.  Is there any way to prevent
>the listbox from redrawing all visible items when it scrolls one line 
>after receiving an LB_ADDSTRING message?  Without the LB_ADDSTRING,
>scrolling only redraws the newly visible item, doing a quick bitmap
>shift of the other items.
>
>I have tried everything I could think of.  At this point, it seems
>to me that there is no way to avoid it.
>

Try using the WM_SETREDRAW message if the list box needs to update all 
elements in the list.  This will cause the list to be only painted once.

steven@netcom.com

Newsgroups: comp.os.ms-windows.programmer.misc