Jump to content
Sign in to follow this  
erblemoof

GuiCtrlCreatePic +$WS_EX_CLIENTEDGE distorts image

Recommended Posts

erblemoof

Hi all,

I hope someone can help - I searched the forums but couldn't find anything, although there is a lot to search from so I may have missed it. Anyways, I'm trying to display an inset BMP using GuiCtrlCreatePic by adding the $WS_EX_CLIENTEDGE extended style. Without the style, the BMP looks just fine. With the style, it gets slightly shrunk and distorted. It's as if it's including the frame portion with the width and height in GuiCtrlCreatePic. I've tried twiddling with the width/height values, but can't get the image to look clear. This is the line in my script:

GuiCtrlCreatePic( "C:\Program Files\Resources\logo.bmp", 500, 35, 125, 126, -1, $WS_EX_CLIENTEDGE )

Is there any quick way to determine what I should use for length or width, assuming that's what I need to do? Otherwise, how can I get the inset frame to appear *and* have the BMP stay its proper shape? The size of the BMP is 125x126.

Thanks in advance,

Dave

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×