Click here to Skip to main content
15,902,445 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Change Font Pin
Nibu babu thomas9-Jan-09 17:19
Nibu babu thomas9-Jan-09 17:19 
Questionscenary in the client area using visual c++ Pin
valli389-Jan-09 13:24
valli389-Jan-09 13:24 
AnswerWTF? Pin
leckey9-Jan-09 15:27
leckey9-Jan-09 15:27 
Questiondivide the client area in to 4 quadrants and store them with different gradient patterns using visual c++ Pin
valli389-Jan-09 13:21
valli389-Jan-09 13:21 
Questiondivide the client area in to 4 quadrants and store them with different gradient patterns [modified] Pin
valli389-Jan-09 13:20
valli389-Jan-09 13:20 
QuestionVector problem in VC++ 2008 Pin
pratap19809-Jan-09 9:03
pratap19809-Jan-09 9:03 
AnswerRe: Vector problem in VC++ 2008 Pin
Stuart Dootson9-Jan-09 12:02
professionalStuart Dootson9-Jan-09 12:02 
QuestionHow to update MFC Control from ActiveX? Pin
Member 30175479-Jan-09 8:20
Member 30175479-Jan-09 8:20 
I am still fairly new to MFC, I have been mainly working on embedded/chip level C.

Now I have a MFC application talking to my controller through ActiveX. Certain data retrieived by ActiveX needs to be displayed to MFC user interface. data retrieiving and filltering are successful. I am trying to pass the data to MFC into an Edit control. Edit control received the notice OK. Then I get stuck. The value of the Edit control is NOT updating until the call to ActiveX is returned. As a result, only the last data is displayed. all data sent while ActiveX is running is not shown to User (although Edit control got all data).

MFC Application -> User Interface -> User Click "Retrieve" -> Display certain data to Edit box on User Interface at run-time.

What am I missing?


in .h file:
afx_msg void OnChangeStatus();

in .c file:
void CReceiveSend::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CReceiveSend)
....
DDX_Text(pDX, IDC_STATUS, X_Current_Status);
....
//}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CReceiveSend, CDialog)
//{{AFX_MSG_MAP(CReceiveSend)
...
ON_EN_CHANGE(IDC_STATUS, OnChangeStatus)
...
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

void CReceiveSend::OnChangeStatus()
{
//transfers values from the member variables to the controls
UpdateData( FALSE );

}

inside ActiveX function call:
int CReceiveSend::XReceive()
{
....
X_Current_Status = some_value;
this->SetDlgItemText(IDC_STATUS, X_Current_Status);

return(0);
}

Thanks
AnswerRe: How to update MFC Control from ActiveX? Pin
Member 301754712-Jan-09 5:33
Member 301754712-Jan-09 5:33 
QuestionCall Stack in Visual C++ 2005 Pin
DSPCottage9-Jan-09 6:52
DSPCottage9-Jan-09 6:52 
AnswerRe: Call Stack in Visual C++ 2005 Pin
CPallini9-Jan-09 7:05
mveCPallini9-Jan-09 7:05 
GeneralRe: Call Stack in Visual C++ 2005 Pin
DSPCottage9-Jan-09 7:19
DSPCottage9-Jan-09 7:19 
GeneralRe: Call Stack in Visual C++ 2005 Pin
CPallini9-Jan-09 7:42
mveCPallini9-Jan-09 7:42 
QuestionMoving window causes exception Pin
Paffinity9-Jan-09 6:30
Paffinity9-Jan-09 6:30 
AnswerRe: Moving window causes exception Pin
CPallini9-Jan-09 6:43
mveCPallini9-Jan-09 6:43 
QuestionHow to Close or Kill the thread Pin
Member 46517419-Jan-09 4:30
Member 46517419-Jan-09 4:30 
AnswerRe: How to Close or Kill the thread Pin
Cedric Moonen9-Jan-09 4:47
Cedric Moonen9-Jan-09 4:47 
GeneralRe: How to Close or Kill the thread Pin
Member 46517419-Jan-09 4:51
Member 46517419-Jan-09 4:51 
GeneralRe: How to Close or Kill the thread Pin
Cedric Moonen9-Jan-09 5:08
Cedric Moonen9-Jan-09 5:08 
AnswerRe: How to Close or Kill the thread Pin
Code-o-mat9-Jan-09 4:55
Code-o-mat9-Jan-09 4:55 
GeneralRe: How to Close or Kill the thread Pin
Member 46517419-Jan-09 5:00
Member 46517419-Jan-09 5:00 
GeneralRe: How to Close or Kill the thread Pin
Code-o-mat9-Jan-09 5:19
Code-o-mat9-Jan-09 5:19 
GeneralRe: How to Close or Kill the thread Pin
Mark Salsbery9-Jan-09 11:33
Mark Salsbery9-Jan-09 11:33 
QuestionC++ and Sqlite connection Pin
vanishaa9-Jan-09 2:45
vanishaa9-Jan-09 2:45 
QuestionRe: C++ and Sqlite connection Pin
David Crow9-Jan-09 3:03
David Crow9-Jan-09 3:03 

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.