🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #14

Re: HELP: Load an icon from a .EXE file

#14
From: Candy M. McLellan
Date: Tue, 21 Jul 1992 17:20
37 lines
1736 bytes
In article <1992Jul21.144036.26772@hyper.hyper.com> bonneau@hyper.UUCP (Paul Bonneau,,) writes:
>In article <1992Jul21.023757.24588@vela.acs.oakland.edu> mclellan@vela.acs.oakland.edu (Candy M. McLellan) writes:
>
>If you don't have version 3.1, send me mail.
>
>cheers - Paul.

Paul,

	I guess I just don't know the 3.1 API as well as I thought
	I did - I was not aware of ExtractIcon (at least not in
	the API anyway).

	Why I have your expertise,

	How can I keep a Bitmap Selected into memory with an
	Owner-Draw ListBox?

	The ODA messages seem to work on a item by item basis
	with no sequence (asynchronous) with lp->hDC having
	no beginning.

	IOW, I want to select a bitmap into memory for the first
	item in a re-paint and then not select again for further
	items (this speeds things up considerable when doing
	one's own custom controls).

	However, as I said, the Owner-Draw does not seem to have
	a synchrous state where one can tell when the hDC is
	first being claimed for any given # of item re-paints.

	I thought of subclassing ListBox but I don't see how
	one could intercept WM_PAINT for the hDC I'm referring to

	Any suggestions are greatly appreciated.

	Regards
Technical Details
Message-ID: <1992Jul21.172030.4078@vela.acs.oakland.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!wsu-cs!vela!mclellan
References: <5474@umriscc.isc.umr.edu> <1992Jul21.023757.24588@vela.acs.oakland.edu> <1992Jul21.144036.26772@hyper.hyper.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!wsu-cs!vela!mclellan
From: mclellan@vela.acs.oakland.edu (Candy M. McLellan)
Subject: Re: HELP: Load an icon from a .EXE file
Message-ID: <1992Jul21.172030.4078@vela.acs.oakland.edu>
Organization: Oakland University, Rochester MI.
References: <5474@umriscc.isc.umr.edu> <1992Jul21.023757.24588@vela.acs.oakland.edu> <1992Jul21.144036.26772@hyper.hyper.com>
Date: Tue, 21 Jul 1992 17:20:30 GMT
Lines: 38