I have had a similar problem with simple
Messagebox
calls, when the WM_PAINT handler does not call the
BeginPaint
/
EndPaint
sequence. You may like to check if that is a possibility.
[edit]
void CUserPromptDlg::GetDisplayPrompt(WCHAR *pUserPrompt)
{
wcscpy(pUserPrompt, L"Test message");
}
void CUserPromptDlg::TestFunc1()
{
GetDisplayPrompt(m_UserPrompt);
AfxMessageBox(m_UserPrompt);
SetDlgItemTextW(IDS_USER_PROMPT, m_UserPrompt);
}
You appear to be using different variables for the text.
[/edit]