GDI ???

new topic     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C0C1E9.51306240
	boundary="----=_NextPart_001_0018_01C0C1E9.51306240"


------=_NextPart_001_0018_01C0C1E9.51306240
	charset="Windows-1252"

Glacier
Hi,=20

i'm writing a graphical alarm presentation program (fire )

i have to create about 1000 transparent ( i use 4200 as parameter) =
PushButtons for the detectors .
then I transblt a Dib above it, this way i get a clickable transparent =
image (since icons don't work ok on a bitmap background)


I have a problem :

I can't create 1000 buttons at once ,=20

Win32lib gives me an error (unable to SaveDC...)

GDI resource =3D 0%   ?????

How can i avoid this , i need all of the buttons to work  to detect what =
Dib was clicked.

Can i Free GDI resources, without destroying the PushButton ???

I tried getDC and ReleaseDC, but still it doesn't work) (Handle error)

Win2000/NT doesn't have a problem with this only Win95,98,Me


Renzo Beggia
Email : renzo.beggia at vsk.be



------=_NextPart_001_0018_01C0C1E9.51306240
Content-Type: text/html;
	charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Glacier</TITLE>
<META content=3D"text/html; charset=3Dwindows-1252" =
http-equiv=3DContent-Type><BASE=20
href=3D"file://C:\Program Files\Common Files\Microsoft =
Shared\Stationery\">
<STYLE>BODY {
	COLOR: #006666; FONT-FAMILY: Arial, Helvetica; FONT-SIZE: 10pt; =
MARGIN-LEFT: 50px; MARGIN-TOP: 20px
}
</STYLE>

<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR></HEAD>
<BODY background=3Dcid:001601c0c1d8$8da48500$8c00000a@BEGGIA =
bgColor=3D#ffffff>
<DIV>&nbsp;</DIV>
<DIV>Hi, </DIV>
<DIV>&nbsp;</DIV>
<DIV>i'm writing a graphical alarm presentation program (fire )</DIV>
<DIV>&nbsp;</DIV>
<DIV>i have to create about 1000 transparent ( i use 4200 as parameter)=20
PushButtons for the detectors .</DIV>
<DIV>then I transblt a Dib above it, this way i get a clickable =
transparent=20
image (since icons don't work ok on a bitmap background)</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>I have a problem :</DIV>
<DIV>&nbsp;</DIV>
<DIV>I can't create 1000 buttons at once , </DIV>
<DIV>&nbsp;</DIV>
<DIV>Win32lib gives me an error (unable to SaveDC...)</DIV>
<DIV>&nbsp;</DIV>
<DIV>GDI resource =3D 0%&nbsp;&nbsp; ?????</DIV>
<DIV>&nbsp;</DIV>
<DIV>How can i avoid this , i need all of the buttons to work  to detect =
what=20
Dib was clicked.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Can i Free GDI resources, without destroying the PushButton =
???</DIV>
<DIV>&nbsp;</DIV>
<DIV>I tried getDC and ReleaseDC, but still it doesn't work) (Handle=20
error)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Win2000/NT doesn't have a problem with this only Win95,98,Me</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Renzo Beggia<BR>Email : <A=20
href=3D"mailto:renzo.beggia at vsk.be">renzo.beggia at vsk.be</A></DIV>

------=_NextPart_001_0018_01C0C1E9.51306240--

------=_NextPart_000_0017_01C0C1E9.51306240
Content-Type: image/jpeg;
	name="Glacier Bkgrd.jpg"
Content-Transfer-Encoding: base64

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu