(Link to AcmlmWiki) Offline: thank ||bass
Register | Login
Views: 13,040,846
Main | Memberlist | Active users | Calendar | Chat | Online users
Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album
05-29-24 11:29 AM
0 users currently in Programming.
Acmlm's Board - I3 Archive - Programming - And of course the BitBlt() question
  
User name:
Password:
Reply:
 
Options: - -
Quik-Attach:
Preview for more options

Max size 1.00 MB, types: png, gif, jpg, txt, zip, rar, tar, gz, 7z, ace, mp3, ogg, mid, ips, bz2, lzh, psd

UserPost
interdpth
Posts: 21/362
I found my problem, GetLastError(); is one good function turns out my code was working but my location to the picture was wrong. Slap me.
Kyoufu Kawa
Posts: 318/1353
Okay...
hWnd literally means "handle to a window". Window can be a form (to use the less ambigious VB name), a control, your desktop...
hDC literally means "handle to a device context", alternatively I'd call em "drawing canvases".

Each window has a canvas. These are seperate entities. Each window class also knows how to draw itself, hence the whole "subclass a ComboBox to make it draw in the latest Office fashion" thing.

BitBlt requires two canvases: the source and the destination. Creating a window returns the new window's hWnd. You can then call GetWindowDC(hWnd) to retrieve the matching canvas handle, which can then be used by your favorite graphics functions, including but not limited to BitBlt.

Need more info?
interdpth
Posts: 20/362
Language would be C/C++. I've been using MSDN but I still don't qutie get all the hDC stuff and how it applies to a hwnd and stuff
dcahrakos
Posts: 115/499
if its VB, then here
http://www.vbexplorer.com/VBExplorer/library/bitbltprimer.asp

if its C/C++
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_0fzo.asp
Kyoufu Kawa
Posts: 246/1353
What language? Best I can give you on short notice is an MSDN excerpt.
interdpth
Posts: 19/362
Ok, I forgot most about bitbltting. Can someone point me to a tutorial that's explained simple. Or give an example on how to bitblt? Thanks!
Acmlm's Board - I3 Archive - Programming - And of course the BitBlt() question


ABII

Acmlmboard 1.92.999, 9/17/2006
©2000-2006 Acmlm, Emuz, Blades, Xkeeper

Page rendered in 0.010 seconds; used 349.13 kB (max 386.45 kB)