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
Anonymous asked in 電腦與網際網路程式設計 · 1 decade ago

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

使用VC++ (非MFC)

1. 如何抓取edit中的字串

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

實在不知要從什麼地方下手,只好上來問了

Update:

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

你可以順便看看我其它發問的問題,有沒有你可以回答的

1 Answer

Rating
  • ?
    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.