Click here to Skip to main content
15,922,007 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I set exact dialog size in designer Pin
Rage13-Dec-05 2:55
professionalRage13-Dec-05 2:55 
JokeRe: How can I set exact dialog size in designer Pin
toxcct13-Dec-05 2:58
toxcct13-Dec-05 2:58 
GeneralRe: How can I set exact dialog size in designer Pin
Maximilien12-Dec-05 4:19
Maximilien12-Dec-05 4:19 
QuestionUpdate CEdit control of dlg from non MFC Class Pin
victoryelectorn12-Dec-05 0:02
victoryelectorn12-Dec-05 0:02 
AnswerRe: Update CEdit control of dlg from non MFC Class Pin
khan++12-Dec-05 0:28
khan++12-Dec-05 0:28 
GeneralRe: Update CEdit control of dlg from non MFC Class Pin
victoryelectorn12-Dec-05 1:04
victoryelectorn12-Dec-05 1:04 
GeneralRe: Update CEdit control of dlg from non MFC Class Pin
victoryelectorn12-Dec-05 1:21
victoryelectorn12-Dec-05 1:21 
GeneralRe: Update CEdit control of dlg from non MFC Class Pin
khan++12-Dec-05 1:30
khan++12-Dec-05 1:30 
I am not sure what you are trying to acheive, but I think it is this:
To set the m_pEdit to the actual variable's address, you can do it when creating the control. Like:
class CMyDialog : public CDialog<br />
{<br />
public:<br />
CXyz m_Xyz;<br />
...<br />
...<br />
};<br />
<br />
CMyDialog::OnInitDialog()<br />
{<br />
m_Xyz.m_pEdit = &m_Edit;// m_Edit is the actual class variable.<br />
}


Now the pointer is set, and there is no need to set it again. Now any function in CXyz can set the edit's text, like:
void CXyz::SetNewText()<br />
{<br />
m_pEdit->SetWindowText("asdf");<br />
}


Your question is not clear, so:
Are you using multi-threading? If no, then learn some multi-threading, and use threads, so the program won't freeze while it is processing.


this is this.
GeneralRe: Update CEdit control of dlg from non MFC Class Pin
victoryelectorn12-Dec-05 2:09
victoryelectorn12-Dec-05 2:09 
GeneralRe: Update CEdit control of dlg from non MFC Class Pin
khan++12-Dec-05 2:17
khan++12-Dec-05 2:17 
GeneralRe: Update CEdit control of dlg from non MFC Class Pin
victoryelectorn12-Dec-05 2:35
victoryelectorn12-Dec-05 2:35 
QuestionCurrent profile of outlook and XP Pin
Analog1911-Dec-05 23:08
Analog1911-Dec-05 23:08 
AnswerRe: Current profile of outlook and XP Pin
ThatsAlok12-Dec-05 3:55
ThatsAlok12-Dec-05 3:55 
GeneralRe: Current profile of outlook and XP Pin
Analog1912-Dec-05 19:35
Analog1912-Dec-05 19:35 
QuestionWH_JOURNALPLAYBACK can not play back correctly on windows xp sometime Pin
ming78072511-Dec-05 22:15
ming78072511-Dec-05 22:15 
QuestionCDateTimeCtrl Problem Pin
romuzu11-Dec-05 20:10
romuzu11-Dec-05 20:10 
QuestionWhats te Advantage of memory dc?? Pin
vijayganesh11-Dec-05 19:59
vijayganesh11-Dec-05 19:59 
AnswerRe: Whats te Advantage of memory dc?? Pin
Calc2011-Dec-05 21:00
Calc2011-Dec-05 21:00 
GeneralRe: Whats te Advantage of memory dc?? Pin
Johann Gerell11-Dec-05 21:18
Johann Gerell11-Dec-05 21:18 
QuestionAcceleraors and Modeless Dialog Pin
TchouTchou Project11-Dec-05 19:40
TchouTchou Project11-Dec-05 19:40 
Questionmessge handler through wizard in vc.net Pin
_tasleem11-Dec-05 19:35
_tasleem11-Dec-05 19:35 
AnswerRe: messge handler through wizard in vc.net Pin
Aamir Butt11-Dec-05 23:08
Aamir Butt11-Dec-05 23:08 
QuestionWQL Queries for Win32_Directory Events Pin
ragavan11-Dec-05 19:14
ragavan11-Dec-05 19:14 
QuestionHow to dynamically update an xml file in C++ Pin
srimayank11_codeproject11-Dec-05 19:08
srimayank11_codeproject11-Dec-05 19:08 
AnswerRe: How to dynamically update an xml file in C++ Pin
Christian Graus11-Dec-05 19:21
protectorChristian Graus11-Dec-05 19:21 

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.