int GetWindowText(
HWND hWnd, // handle to window or control with text
LPTSTR lpString, // address of buffer for text
int nMaxCount // maximum number of characters to copy
);
怎么用?
或者
UINT GetDlgItemText(
HWND hDlg, // handle of dialog box
int nIDDlgItem, // identifier of control
LPTSTR lpString, // address of buffer for text
int nMaxCount // maximum size of string
);
吗?按msdn上的来根本不行,第一次用,请指点?
HWND hWnd, // handle to window or control with text
LPTSTR lpString, // address of buffer for text
int nMaxCount // maximum number of characters to copy
);
怎么用?
或者
UINT GetDlgItemText(
HWND hDlg, // handle of dialog box
int nIDDlgItem, // identifier of control
LPTSTR lpString, // address of buffer for text
int nMaxCount // maximum size of string
);
吗?按msdn上的来根本不行,第一次用,请指点?
GetDlgItemText(int nIDDlgItem, CString str); //好像有这个
和
GetDlgItemText(int nIDDlgItem, LPTSTR lpString, int nMaxCount);//那个GetWindowText()也一样