Void CWnd: : SetWindowText (LPCTSTR lpszString)
{
ENSURE (this);
ENSURE (: : IsWindow (m_hWnd) | | (m_pCtrlSite!=NULL));
If (m_pCtrlSite==NULL)
: : SetWindowText (m_hWnd, lpszString);
The else
M_pCtrlSite - & gt; SetWindowText (lpszString);
}
//////////////////////////////////////////////////////////////////////////////////
Int AFXAPI AfxMessageBox (UINT nIDPrompt, UINT nType, UINT nIDHelp)
{
Cstrings string;
if (! String. LoadString (nIDPrompt))
{
TRACE (traceAppMsg, 0, "Error: failed to load the message box prompt string 0 x % 4 x. \ n",
NIDPrompt);
ASSERT (FALSE);
}
If (nIDHelp==(UINT) - 1)
NIDHelp=nIDPrompt;
Return AfxMessageBox (string, nType nIDHelp);
}
Can you tell me where the problem is, novice small white, really don't know how to solve
CodePudding user response:
Click retry, see the call stack, step by step back to your code changes the solutionIn light of the circumstance from the map may be GetDlgItem () returns a null pointer, pay attention to whether or not the window handle, effectively controls whether effective
CodePudding user response: