flat assembler
Message board for the users of flat assembler.

Index > Windows > Bitmaps and Bitmaps buttons

Author
Thread Post new topic Reply to topic
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY
Hi!
I have 2 questions:

1) How to show a bitmap in a dialog created in a resource file? I created the dialog in my resource editor and put a bitmap, but it doesn't show.

2) How to create a bitmap button in dialog created in a resource editor?

Both dialogs are called by DialogBoxParamA.

Please give me the most simple way. I don't want it to be perfect, but only have to work. Post some code.

Thanks!
Post 23 May 2005, 16:01
View user's profile Send private message Reply with quote
Reverend



Joined: 24 Aug 2004
Posts: 408
Location: Poland
Reverend
In resources create a static on the dialog that has SS_BITMAP, then:

Code:
        invoke  LoadBitmap, [hInstance], BMP_ID
        mov     ebx, eax
        invoke  SendMessage, [hBmpStatic], STM_SETIMAGE, IMAGE_BITMAP, ebx    


Or Do analogically with BM_SETIMAGE (for button)
Post 23 May 2005, 20:31
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
I just started a project today - a robot simulator. A learning program. I needed these bitmaps too so I searched around these boards and google - if... I mean WHEN I get it ready I'd be happy to post it here.

Its for our robotics lab: http://www.itcollege.ee/~robot/?do=31
for new kids to learn what programming a robot is all about Very Happy
Post 23 May 2005, 21:58
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.