Link to home
Start Free TrialLog in
Avatar of lieunguyenhoa
lieunguyenhoa

asked on

How to load mutiple images into MDI??

Hi every body, thanks for see my topic.

My problem is =>
" I had an application to load multiple images/bitmap into MDI. For examples: I have 5 images, when i load them to my MDI(window) after that my application will generate 5 MDI(5 windows) that will contain 5 images(each window contain 1 image). "

 Please, help me!!I'm a newbabie :D
Thanks so much for send mail: tranducmille@gmail.com
Avatar of mahesh1402
mahesh1402
Flag of India image

so what you want to do ? want to load them all in one window or just load them in individual ?
Avatar of lieunguyenhoa
lieunguyenhoa

ASKER

' so what you want to do ? want to load them all in one window or just load them in individual ?

Hi Mahesh!
I want to load them all in one window, maybe it will be separated in each page.
Please, see my demo:
http://my.opera.com/tranducmille/homes/albums/52581/1untitled.JPG

Please, help me.
THanks so much
Link is not opening.

Ok ..

>> want to load them all in one window,

well then you may use same code I have given you in my last post of your last question. .. You just need to BitBlt() on your WM_PAINT handler function. As this time you need to load multiple images that means you need multiple BitBlt().

>>maybe it will be separated in each page.

Dont know what do you mean by seperted in each page... You need to seperate by fixed distance or according to your print page.
You can change 'Y' in BitBlt() function to blit image in y dimensions.


MAHESH
Dear MAHESH !

>>As this time you need to load multiple images that means you need multiple BitBlt().

These images will be loaded from a file dialogbox, so that i can't used it with multiple BitBlt().

>>You need to seperate by fixed distance or according to your print page.

How to implement it ??

MAHESH, sorry about my VC++ language, i'm a beginner so i can't write hard codes.
Please help me!

I think link is opening and done well.
Thanks
ASKER CERTIFIED SOLUTION
Avatar of mahesh1402
mahesh1402
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
- Thanks for your answer, i done it.
and now:
 >> How could i calculate height/width of a page or an image. If "size of image" more than "size of page"=> cut part of left(image) and paste it into page 2.
How do it? THanks so much.
size of page <== in what terms ? Printer Page ?

-MAHESH