LPTSTR lpszStrFill = value.GetBufferSetLength(nLen) ĮDITSTREAM es = AFX_DATA_MAP.įor more information about DDX and dialog data validation (DDV) routines, see the "References" section. However, GetWindowText cannot retrieve the text of a control in another. ![]() If the specified window is a control, the text of the control is copied. Int nLen = ::GetWindowTextLength(hWndCtrl) From the entry for GetWindowText in my copy of on-line help (AKA MSDN Library): 'The GetWindowText function copies the text of the specified windows title bar (if it has one) into a buffer. HWND hWndCtrl = pDX->PrepareEditCtrl(nIDC) Void AFXAPI DDX_RichText(CDataExchange* pDX, int nIDC, CString& value)Įxtern void AFXAPI AfxSetWindowText(HWND hWndCtrl, LPCTSTR lpszNew) LPTSTR& lpszStrFill = *(LPTSTR*)dwCookie ![]() To work around this problem, add the following two functions to your project:ĭWORD CALLBACK ES2MemCallBack(DWORD_PTR dwCookie,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |