flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > Win API How disable white rect around the button ?

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 377
Windows 7
I create parent window(size 800x600) and create WS_CHILD+WS_VISIBLE button(position 200,200 and size 80,30 ).
And GDI+ draw on button png picture. Work well.

But around the button exists white rect.
How disable\hide this rect ?

I try BS_FLAT not help.
Post 25 Jul 2018, 10:10
View user's profile Send private message Reply with quote
DimonSoft



Joined: 03 Mar 2010
Posts: 418
Location: Belarus
Roman wrote:
Windows 7
I create parent window(size 800x600) and create WS_CHILD+WS_VISIBLE button(position 200,200 and size 80,30 ).
And GDI+ draw on button png picture. Work well.

But around the button exists white rect.
How disable\hide this rect ?

I try BS_FLAT not help.

Can we see a screenshot? Isn’t this some kind of off-by-one mistake in drawing operations?
Post 25 Jul 2018, 18:20
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 377
Image with word Skip not have rect !
But on button we see white rect. Button not push on image !
If button pushed with rect draw tab stop lines ! It's horrible! Shocked
https://image.ibb.co/c0OP68/skip.jpg


Last edited by Roman on 25 Jul 2018, 21:06; edited 2 times in total
Post 25 Jul 2018, 20:59
View user's profile Send private message Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 377
I do trick.
Create parent window smaller than button !
And rect not draw becoase pass in not render parts of parent window.
But this trick bad if we want draw many buttons on one parent window.
Post 25 Jul 2018, 21:03
View user's profile Send private message 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-2018, Tomasz Grysztar.

Powered by rwasa.