Click here to Skip to main content
15,895,606 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Regarding Microsoft Excel Pin
Hamid_RT29-Jan-07 18:28
Hamid_RT29-Jan-07 18:28 
Questionengine Pin
reyyy29-Jan-07 4:58
reyyy29-Jan-07 4:58 
AnswerRe: engine Pin
David Crow29-Jan-07 5:32
David Crow29-Jan-07 5:32 
GeneralRe: engine Pin
reyyy29-Jan-07 5:35
reyyy29-Jan-07 5:35 
GeneralRe: engine Pin
James R. Twine29-Jan-07 7:17
James R. Twine29-Jan-07 7:17 
QuestionHow to Monitor the Exchange Data Between Driver and Software Application Pin
Khoramdin29-Jan-07 3:41
Khoramdin29-Jan-07 3:41 
QuestionHow to read SQL server performance counter objects details... from 'sqlctr80.dll' Pin
pbrathod29-Jan-07 3:38
pbrathod29-Jan-07 3:38 
QuestionSelection change in dialog box.. Pin
Shah Satish29-Jan-07 2:03
Shah Satish29-Jan-07 2:03 
Hi !!!
First of all i am sorry for deleting my question..Here still i have problem..look

In my Application,I created one dialog box..In this dialog box,I cretaed small 2 boxes.One is for list of Symbol ( text ) and second box is for preview of the drawing.

For exam:-

Box1: Box 2 ( preview )
Exchanger-Double end

Exchanger-Single end

Exchanger-Double end kettle


My requirement is,

If I will click on Exchanger-Double end ( box1) from dialog box then it will show me drawing of Exchanger-Double end ..If I will click on Exchanger-Single end
then it will show me preview of Drawing Exchanger-Single end.


My code is:-

BOOL CDwgPvDLG::OnInitDialog()
{
	CDialog::OnInitDialog();

	//CDwgPreview    
 
	m_mytext.AddString(_T("Exchanger-Double end"));
      m_mytext.AddString(_T("Exchanger-Single end"));
      m_mytext.AddString(_T("Exchanger-Double end kettle"));
	 

      m_mytext.SetCurSel(0);

      mydwg = _T("C:\\Symbol\\Exchangers\\Exchanger_1_i.dwg");



 	

	return TRUE;
}


void CDwgPvDLG::OnPaint()
{

	// this is class for Preview of the drawing.


	CDwgPreview ::ShowInDialog (mydwg,this,IDC_PVTYP);

	CPaintDC dc(this); // device context for painting
	// TODO: Add your message handler code here
	// Do not call CDialog::OnPaint() for painting messages


}

void CDwgPvDLG::OnselectionchangeList()
{
	// TODO: Add your control notification handler code here
	
 int nEntry = m_mytext.GetCurSel();

 switch (nEntry)

 {

 case 0:
	 mydwg = _T("C:\\Symbol\\Exchangers\\Exchanger_1_i.dwg");
	 break ;

 case 1:

	 mydwg = _T("C:\\Symbol\\Exchangers\\Exchanger_2_i.dwg");
	 break ; 

 case 2:

	 mydwg = _T("C:\\Symbol\\Exchangers\\Exchanger_3_i.dwg");

	 break;



 }

}



Anybody know How can I do it ??


Thanking you..


Shah
AnswerRe: Selection change in dialog box.. Pin
Don Box29-Jan-07 2:09
Don Box29-Jan-07 2:09 
QuestionRe: Selection change in dialog box.. Pin
prasad_som29-Jan-07 2:38
prasad_som29-Jan-07 2:38 
QuestionClick on CStatic Pin
baerten29-Jan-07 1:58
baerten29-Jan-07 1:58 
AnswerRe: Click on CStatic Pin
Don Box29-Jan-07 2:22
Don Box29-Jan-07 2:22 
AnswerRe: Click on CStatic Pin
prasad_som29-Jan-07 2:29
prasad_som29-Jan-07 2:29 
JokeThanks you two Pin
baerten29-Jan-07 4:05
baerten29-Jan-07 4:05 
QuestionRe: Click on CStatic Pin
Hamid_RT29-Jan-07 18:26
Hamid_RT29-Jan-07 18:26 
AnswerRe: Click on CStatic Pin
baerten29-Jan-07 20:48
baerten29-Jan-07 20:48 
GeneralRe: Click on CStatic Pin
Hamid_RT30-Jan-07 18:14
Hamid_RT30-Jan-07 18:14 
QuestionSHGetFolderPath() for *another* user Pin
Taka Muraoka29-Jan-07 1:48
Taka Muraoka29-Jan-07 1:48 
AnswerRe: SHGetFolderPath() for *another* user Pin
Don Box29-Jan-07 2:26
Don Box29-Jan-07 2:26 
GeneralRe: SHGetFolderPath() for *another* user Pin
Taka Muraoka29-Jan-07 2:31
Taka Muraoka29-Jan-07 2:31 
AnswerRe: SHGetFolderPath() for *another* user Pin
David Crow29-Jan-07 4:56
David Crow29-Jan-07 4:56 
GeneralRe: SHGetFolderPath() for *another* user Pin
Taka Muraoka29-Jan-07 5:33
Taka Muraoka29-Jan-07 5:33 
GeneralRe: SHGetFolderPath() for *another* user Pin
David Crow29-Jan-07 7:12
David Crow29-Jan-07 7:12 
GeneralRe: SHGetFolderPath() for *another* user Pin
Taka Muraoka29-Jan-07 7:20
Taka Muraoka29-Jan-07 7:20 
QuestionRunning Application in Memory Pin
thomas_tom9929-Jan-07 1:44
thomas_tom9929-Jan-07 1:44 

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.