Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to display many picture in 1 dialog Pin
DevelopmentNoob12-Aug-09 19:42
DevelopmentNoob12-Aug-09 19:42 
GeneralRe: how to display many picture in 1 dialog Pin
Code-o-mat12-Aug-09 21:27
Code-o-mat12-Aug-09 21:27 
GeneralRe: how to display many picture in 1 dialog Pin
DevelopmentNoob12-Aug-09 23:45
DevelopmentNoob12-Aug-09 23:45 
GeneralRe: how to display many picture in 1 dialog Pin
Code-o-mat13-Aug-09 0:08
Code-o-mat13-Aug-09 0:08 
GeneralRe: how to display many picture in 1 dialog [modified] Pin
DevelopmentNoob13-Aug-09 15:24
DevelopmentNoob13-Aug-09 15:24 
GeneralRe: how to display many picture in 1 dialog Pin
Code-o-mat13-Aug-09 20:59
Code-o-mat13-Aug-09 20:59 
GeneralRe: how to display many picture in 1 dialog Pin
DevelopmentNoob13-Aug-09 21:22
DevelopmentNoob13-Aug-09 21:22 
GeneralRe: how to display many picture in 1 dialog Pin
Code-o-mat13-Aug-09 21:43
Code-o-mat13-Aug-09 21:43 
As far as i can say, your code does exactly what you told it to do, it will draw the picture and only that picture which you selected using the radio buttons. However, i believe what you actually want is to draw all 4 images in your DrawPreview, not only the one that the radio selection indicates, right. So instead of checking that id of yours do -for example- a for loop that draws all 4 pictures if they are there. For example:
void CTest::DrawPreview(CDC *pDC)
{
  UINT PicCtrlIDs[] = {IDC_Picture1, IDC_Picture2, IDC_Picture3, IDC_Picture4};
  for (int i = 0; i < 4; i++)
    if (m_pImg[i])
    {
      CWnd *PicControl = GetDlgCtrlItem(PicCtrlIDs[i]);
      ...
      //Get the rect for the pic control and draw m_pImg[i] to it...
      ..
     }
}


> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <

GeneralRe: how to display many picture in 1 dialog Pin
DevelopmentNoob13-Aug-09 22:35
DevelopmentNoob13-Aug-09 22:35 
GeneralRe: how to display many picture in 1 dialog Pin
Code-o-mat13-Aug-09 22:39
Code-o-mat13-Aug-09 22:39 
AnswerRe: how to display many picture in 1 dialog Pin
CPallini12-Aug-09 21:03
mveCPallini12-Aug-09 21:03 
QuestionComboBox Pin
kumar sanghvi12-Aug-09 19:25
kumar sanghvi12-Aug-09 19:25 
AnswerRe: ComboBox Pin
Bacon Ultimate Cheeseburger12-Aug-09 19:51
Bacon Ultimate Cheeseburger12-Aug-09 19:51 
GeneralRe: ComboBox Pin
kumar sanghvi12-Aug-09 19:59
kumar sanghvi12-Aug-09 19:59 
GeneralRe: ComboBox Pin
Bacon Ultimate Cheeseburger12-Aug-09 20:26
Bacon Ultimate Cheeseburger12-Aug-09 20:26 
GeneralRe: ComboBox Pin
kumar sanghvi13-Aug-09 21:49
kumar sanghvi13-Aug-09 21:49 
QuestionHow i can insert image on Bitmap Pin
002comp12-Aug-09 19:00
002comp12-Aug-09 19:00 
AnswerRe: How i can insert image on Bitmap Pin
Joe Woodbury12-Aug-09 19:22
professionalJoe Woodbury12-Aug-09 19:22 
GeneralRe: How i can insert image on Bitmap Pin
002comp12-Aug-09 19:55
002comp12-Aug-09 19:55 
Questioncheck whether new picture upload in the folder Pin
pearllyn12-Aug-09 15:15
pearllyn12-Aug-09 15:15 
AnswerRe: check whether new picture upload in the folder Pin
zhu_lin12-Aug-09 15:54
zhu_lin12-Aug-09 15:54 
GeneralRe: check whether new picture upload in the folder Pin
pearllyn12-Aug-09 16:35
pearllyn12-Aug-09 16:35 
GeneralRe: check whether new picture upload in the folder Pin
zhu_lin12-Aug-09 16:53
zhu_lin12-Aug-09 16:53 
AnswerRe: check whether new picture upload in the folder Pin
zhu_lin12-Aug-09 17:05
zhu_lin12-Aug-09 17:05 
GeneralRe: check whether new picture upload in the folder Pin
pearllyn12-Aug-09 17:47
pearllyn12-Aug-09 17:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.