Click here to Skip to main content
15,896,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Sockets Pin
Nibu babu thomas1-Feb-07 20:43
Nibu babu thomas1-Feb-07 20:43 
GeneralRe: MFC Sockets Pin
Hamid_RT2-Feb-07 4:09
Hamid_RT2-Feb-07 4:09 
AnswerRe: MFC Sockets Pin
Hamid_RT30-Jan-07 2:08
Hamid_RT30-Jan-07 2:08 
QuestionHow to Insert Object... Pin
Shah Satish30-Jan-07 0:59
Shah Satish30-Jan-07 0:59 
AnswerRe: How to Insert Object... Pin
Roger Stoltz30-Jan-07 1:15
Roger Stoltz30-Jan-07 1:15 
GeneralRe: How to Insert Object... Pin
Shah Satish30-Jan-07 1:20
Shah Satish30-Jan-07 1:20 
GeneralRe: How to Insert Object... Pin
Roger Stoltz30-Jan-07 1:44
Roger Stoltz30-Jan-07 1:44 
GeneralRe: How to Insert Object... Pin
Shah Satish30-Jan-07 1:53
Shah Satish30-Jan-07 1:53 
Yeh..You got my question correctly..

See my code..

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

	
	//static bool isFirstRun = true;

 
	m_mytext.AddString(_T("Exchanger-Double end"));
        m_mytext.AddString(_T("Exchanger-Single end"));
        m_mytext.AddString(_T("Exchanger-Double end kettle"));
	m_mytext.AddString(_T("Exchanger-Single end kettle"));
	m_mytext.AddString(_T("Exchanger-Super"));
	m_mytext.AddString(_T("Exchanger-Process Flow"));
     

  if (str == _T("")) {

    // This is default value.

	   m_mytext.SetCurSel(0);

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

   }

   else{

	   m_mytext.SelectString(-1,str);
    }
 
    this->Invalidate(FALSE);
    
	return TRUE;
}

void CDwgPvDLG::OnPaint()

{
    // This is the class for preview of my 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();
   

   const IndexEntry *pEntry = m_pPermutedIndex->GetIndexTableEntry(nEntry);

   this->Invalidate(FALSE);

   
}

void CDwgPvDLG ::OnOK()
{
    CDialog::OnOK();

	
   m_mytext.GetText(m_mytext.GetCurSel(),str);

  //Here i have to add some code for inserting my symbol (.dwg).	

}


Shah
GeneralRe: How to Insert Object... Pin
jhwurmbach30-Jan-07 2:40
jhwurmbach30-Jan-07 2:40 
GeneralRe: How to Insert Object... Pin
Shah Satish30-Jan-07 2:46
Shah Satish30-Jan-07 2:46 
GeneralRe: How to Insert Object... Pin
jhwurmbach30-Jan-07 2:51
jhwurmbach30-Jan-07 2:51 
GeneralRe: How to Insert Object... Pin
Shah Satish30-Jan-07 2:54
Shah Satish30-Jan-07 2:54 
GeneralRe: How to Insert Object... Pin
jhwurmbach30-Jan-07 2:57
jhwurmbach30-Jan-07 2:57 
QuestionCross-Process Subclassing Pin
Force Code30-Jan-07 0:47
Force Code30-Jan-07 0:47 
QuestionI need help with win32 api edit controls Pin
asp.netProgrammer30-Jan-07 0:20
asp.netProgrammer30-Jan-07 0:20 
AnswerRe: I need help with win32 api edit controls Pin
_AnsHUMAN_ 30-Jan-07 0:28
_AnsHUMAN_ 30-Jan-07 0:28 
AnswerRe: I need help with win32 api edit controls [modified] Pin
Naveen30-Jan-07 0:38
Naveen30-Jan-07 0:38 
AnswerRe: I need help with win32 api edit controls Pin
S Douglas30-Jan-07 1:21
professionalS Douglas30-Jan-07 1:21 
GeneralRe: I need help with win32 api edit controls Pin
asp.netProgrammer30-Jan-07 4:39
asp.netProgrammer30-Jan-07 4:39 
GeneralRe: I need help with win32 api edit controls Pin
Michael Dunn30-Jan-07 7:29
sitebuilderMichael Dunn30-Jan-07 7:29 
QuestionNeed help with CXX0033: Error: error in OMF type information Pin
Sebastian Schneider29-Jan-07 23:48
Sebastian Schneider29-Jan-07 23:48 
AnswerRe: Need help with CXX0033: Error: error in OMF type information Pin
Sebastian Schneider30-Jan-07 1:37
Sebastian Schneider30-Jan-07 1:37 
QuestionReading disk data from multiple processes. Pin
Bartosz Bien29-Jan-07 22:08
Bartosz Bien29-Jan-07 22:08 
JokeRe: Reading disk data from multiple processes. Pin
Nibu babu thomas29-Jan-07 22:14
Nibu babu thomas29-Jan-07 22:14 
GeneralRe: Reading disk data from multiple processes. Pin
Bartosz Bien29-Jan-07 22:28
Bartosz Bien29-Jan-07 22:28 

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.