Register | Login | |||||
Main
| Memberlist
| Active users
| Calendar
| Chat
| Online users Ranks | FAQ | ACS | Stats | Color Chart | Search | Photo album |
| |
0 users currently in Programming. |
Acmlm's Board - I3 Archive - Programming - And of course the BitBlt() question | New poll | | |
Add to favorites | Next newer thread | Next older thread |
User | Post | ||
interdpth Mole MZM rapist Since: 11-18-05 Last post: 6424 days Last view: 6424 days |
| ||
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! | |||
Kyoufu Kawa Intends to keep Rom Hacking in one piece until the end Since: 11-18-05 From: Catgirl Central Station Last post: 6424 days Last view: 6424 days |
| ||
What language? Best I can give you on short notice is an MSDN excerpt. | |||
dcahrakos 490 Since: 11-17-05 Last post: 6641 days Last view: 6641 days |
| ||
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 |
|||
interdpth Mole MZM rapist Since: 11-18-05 Last post: 6424 days Last view: 6424 days |
| ||
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 | |||
Kyoufu Kawa Intends to keep Rom Hacking in one piece until the end Since: 11-18-05 From: Catgirl Central Station Last post: 6424 days Last view: 6424 days |
| ||
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 Mole MZM rapist Since: 11-18-05 Last post: 6424 days Last view: 6424 days |
| ||
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. |
Add to favorites | Next newer thread | Next older thread |
Acmlm's Board - I3 Archive - Programming - And of course the BitBlt() question | | |