Re: Resizable Views



Most of the time when I do a background skin on a dialog I just don't allow resizing for that very reason. Some people use a tiling format where the image can just be repeated more often rather than stretching. Or, you could just have the original image be as large as you expect the user would ever make the dialog and then reduce it. Reducing tends to give better results than increasing size.

Tom

"ScottBright762" <emersonespinola@xxxxxxxxx> wrote in message news:f018659a-e322-4963-9060-ddfb5862dac0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I guess my problem changed. Now with your advises I can resize my
frame and view and have my controls moved, but when I have an image
which works as a egde of a control like this image:
http://igorshare.files.wordpress.com/2008/06/skin-factory-thumb.png ;
what if resize the window? what must happen to the background?
stretch? if so, the background's quality gets low. So what to do? have
you faced situations like that world wide?

[]'s


On 30 set, 12:00, "AliR \(VC++ MVP\)" <A...@xxxxxxxxxxxxx> wrote:
What is the problem you are having?

Typically I don't use the Picture control to put an image on the background
of a window. Instead I would catch the WM_EARSEBKGND message and draw the
image myself, using bitblt or stretchblt.

AliR.

"ScottBright762" <emersonespin...@xxxxxxxxx> wrote in message

news:71974abe-7e63-4881-ba5d-4d6aa0fd4446@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> Hi all!

> Now it's not a MFC question at all, but I'd appreciate to hear from
> your experience if you have ever used these components that were
> mentioned with an image in the background.
> If so can you share this experience? Imagine that this image surrounds
> some components such as listboxes, buttons, statics, and so forth.

> Thanks in advance.

> On 29 set, 15:13, Seetharam <smi...@xxxxxxxxx> wrote:
>> Yes you can..

>> In your OnDraw(), change the size of the image you draw by changing
>> the height & width in BitBlt().

>> -SM

.


Loading