| View previous topic :: View next topic |
| Author |
Message |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
Posted: Tue Mar 18, 2008 6:40 pm Post subject: [C++]Using .bmp as GUI |
|
|
I've found a tutorial on how to use .bmp as GUIs in C++. I downloaded the source code form here, scroll down if you don't see it. When I compiled it, it gave me 2 errors, I commented out those 2 lines and it word fine... Until I tried to chage the skin.bmp. After that I couldn't get it to compile. All I did was go into the skin.bmp file and change the image and that is it. Does anyone know what I'm doing wrong?
_________________
What dosen't kill you, usually does the second time. |
|
| Back to top |
|
 |
HalfPrime Grandmaster Cheater
Reputation: 0
Joined: 12 Mar 2008 Posts: 532 Location: Right there...On your monitor
|
Posted: Tue Mar 18, 2008 7:53 pm Post subject: |
|
|
| Did you change the size of the image?
|
|
| Back to top |
|
 |
Heartless I post too much
Reputation: 0
Joined: 03 Dec 2006 Posts: 2436
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sat Mar 22, 2008 7:07 am Post subject: |
|
|
Do you think painting a picture on a window, and then monitoring the x-y coords the cursor is over is good enough for you?
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
|
| Back to top |
|
 |
samuri25404 Grandmaster Cheater
Reputation: 7
Joined: 04 May 2007 Posts: 955 Location: Why do you care?
|
Posted: Sat Mar 22, 2008 7:49 am Post subject: |
|
|
I think that he's trying to set a bitmap as the background, though I might be wrong.
_________________
|
|
| Back to top |
|
 |
Trow Grandmaster Cheater
Reputation: 2
Joined: 17 Aug 2006 Posts: 957
|
Posted: Sat Mar 22, 2008 7:58 am Post subject: |
|
|
| samuri25404 wrote: |
I think that he's trying to set a bitmap as the background, though I might be wrong. |
the window he creates also owns a hDC right?
_________________
Get kidnapped often. |
|
| Back to top |
|
 |
Renkokuken GO Moderator
Reputation: 4
Joined: 22 Oct 2006 Posts: 3249
|
Posted: Sat Mar 22, 2008 8:01 am Post subject: |
|
|
| samuri25404 wrote: |
I think that he's trying to set a bitmap as the background, though I might be wrong. | A wild InvalidateRect() appears!
|
|
| Back to top |
|
 |
|