Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Anonymous asked in 電腦與網際網路程式設計 · 1 decade ago

EDIT控制元件存取字串問題 (非MFC)

使用VC++ (非MFC)

1. 如何抓取edit中的字串

2. 如何把字串輸出到自已的edit中



測試過可以了~~ 多謝大大


1 Answer

  • ?
    Lv 7
    1 decade ago
    Favorite Answer


    1. 如何抓取edit中的字串

    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


    2. 如何把字串輸出到自已的edit中

    BOOL SetDlgItemText(

    HWND hwndDlg, // handle of dialog box

    int idControl, // identifier of control

    LPCTSTR lpsz // text to set


Still have questions? Get your answers by asking now.