i'll try to explain as clearly as i can ...
-> it's an ATL project WITHOUT the MFC
-> the entry point is a dialog box, it only has a "launch" button and a static part, IDC_STATIC
-> the idea is that this static part (or any part, i'm TRYING static because i don't have a better idea) should display a bitmap. The "launch" button launches another dialog box, which is here only to retrieve the bitmap to display. Let's say the launching dialog box is named "launcher" and the launched one "launched". Launched implements CAxDialogImpl.
-> what i wanted to is :
launcher launches launched
launched retrieves the bitmap and does what it has to do
launched closes itself, and launcher is updated with the bmp that was in launched
(i hope this is clear ...)
-> what i got so far is :
launcher launches launched - fine, i only have to call "doModal(NULL,NULL);" (yes i HAVE to make it modal, as i'm playing with mouse capture etc => i want all the messages to be sent to launched)
launched retrieves the bitmap as i want it to (using bitblt) and closes itself fine ...
and then i'm back on the line right after "doModal" in launcher, launched is killed so i can't access any of its value, and now is my question : WHAT COULD I DO (and when ? just before closing ?) TO GET THAT BITMAP and set the static part of launcher to diplay that bitmap ...
i really hope someone can help, and also that it is clear ...
-> it's an ATL project WITHOUT the MFC
-> the entry point is a dialog box, it only has a "launch" button and a static part, IDC_STATIC
-> the idea is that this static part (or any part, i'm TRYING static because i don't have a better idea) should display a bitmap. The "launch" button launches another dialog box, which is here only to retrieve the bitmap to display. Let's say the launching dialog box is named "launcher" and the launched one "launched". Launched implements CAxDialogImpl.
-> what i wanted to is :
launcher launches launched
launched retrieves the bitmap and does what it has to do
launched closes itself, and launcher is updated with the bmp that was in launched
(i hope this is clear ...)
-> what i got so far is :
launcher launches launched - fine, i only have to call "doModal(NULL,NULL);" (yes i HAVE to make it modal, as i'm playing with mouse capture etc => i want all the messages to be sent to launched)
launched retrieves the bitmap as i want it to (using bitblt) and closes itself fine ...
and then i'm back on the line right after "doModal" in launcher, launched is killed so i can't access any of its value, and now is my question : WHAT COULD I DO (and when ? just before closing ?) TO GET THAT BITMAP and set the static part of launcher to diplay that bitmap ...
i really hope someone can help, and also that it is clear ...