CMNロゴ

ICpx::cpxGetBBSDetailText Method


フォルダプロパティ[詳細]のテキスト入力(ボタン付き)のボタンを押された時の動作を実装します。

Syntax

BOOL cpxGetBBSDetailText(
    ICmnPilot *pICmnPilot,
    HWND hWndParent,
    int idxBBS,
    char *pszKey,
    char *pszData
);

Parameters

pICmnPilot

[in] ICmnPilotインターフェースのポインタ
このインターフェースでCMNの機能を利用することが可能です。

hWndParent

[in] ダイアログボックス等を作成する場合の親ウィンドウハンドル

idxBBS

[in] 掲示板のインデックス(0ベース)

pszKey

[in] 項目キー
ICpx::cpxGetBBSDetailItem で TExtInfoDetail.szItemKey に設定した項目キーを設定します。

pszData

[out] 設定されている入力値 (300byte未満)
選択値はpszDataの先の領域に設定します。

Return Value

値を設定した場合はTRUEを、設定しない場合はFALSEを戻します。

Remarks

TExtInfoDetail.idItemKind がIK_TEXTBまたはIK_TEXTRBの項目がある時のみ有効です。
通常は入力値を選択するダイアログボックスを実装します。
TExtInfoDetail.idItemKind がIK_TEXTBまたはIK_TEXTRBの項目がない場合はFALSEを戻すのみです。
ICpxの他のメソッドとは独立したインスタンスでコールされます。


Example

C++

BOOL _stdcall MyCpx::cpxGetBBSDetailText (ICmnPilot *pICmnPilot,
                                       HWND hWndParent,
                                       int idxBBS,
                                       char *pszKey,
                                       char *pszData)
{
    if (MessageBox (hWndParent, "値を設定しますか?", "CMN", MB_YESNO) == IDYES) {
        strcpy (pszData, "cpxGetBBSDetailText");
        return TRUE;
    }
    return FALSE;
}

Delphi

function  TMyCpx.cpxGetBBSDetailText (pICmnPilot: ICmnPilot;
                                   hWndParent: HWND;
                                   idxBBS: Integer;
                                   lpszKey: LPSTR;
                                   lpszData: LPSTR): LongBool; stdcall;
begin
    if (MessageBox (hWndParent, '値を設定しますか?', 'CMN', MB_YESNO) = IDYES) then
    begin
        StrCopy (lpszData, 'cpxGetBBSDetailText');
        Result := TRUE;
    end
    else
        Result := FALSE;
end;



ICpx