🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #631

hDC Problem

#631
From: haihandsome
Date: Wed, 22 Jul 1998 00:00
19 lines
1224 bytes
I Want to know a difference between type 1 & 2 ?? Why it difference ??
(I want to load bmp file to DC without load it to picture box)

Type 1 ...
Set picTemp.Picture = LoadPicture(FileName)
hdcX = CreateCompatibleDC(0&)
bmpX = CreateBitmap(Width, Height, cPlanes, cPixelBits, 0)
oldX = SelectObject(hdcX, bmpX)
BitBlt hdcX, 0, 0, Width, Height, picTemp.hdc, 0, 0, vbSrcCopy
Type 2 ...
Dim p As New StdPicture
Set p = LoadPicture(FileName)
hdcX = CreateCompatibleDC(0&)
oldX = SelectObject(hdcX, p.Handle)



-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum
Technical Details
Message-ID: <6p5bb8$8a7$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc86e,cd6c7aa98dbd32f4,start
X-Google-Attributes: gidfc86e,public
From: haihandsome@my-dejanews.com
Subject: hDC Problem
Date: 1998/07/22
Message-ID: <6p5bb8$8a7$1@nnrp1.dejanews.com>
X-Deja-AN: 373898094
X-Http-Proxy: 1.0 cache1.nectec.or.th:8080 (Squid/1.1.22) for client 202.44.199.44
Organization: Deja News - The Leader in Internet Discussion
X-Article-Creation-Date: Wed Jul 22 18:21:59 1998 GMT
Newsgroups: cn.bbs.comp.program
X-Http-User-Agent: Mozilla/4.05 [en] (Win95; I)