<input>

How to change value?

Method 1

Called by the framework to exchange and validate dialog data.

Method 2

IHTMLInputElement interface

This interface specifies any type of input control.

result.html

<html>
  <body>
    <input type="text" id="myInput" value="fassbender">
  </body>
</html>

.cpp

CComPtr<IHTMLInputElement> pInputElem;

// Retrieves the requested interface pointer from the HTML element identified.
if(SUCCEEDED(GetElementInterface(_T("myInput"), __uuidof(IHTMLInputElement), (void**)&pInputElem))) {
    pInputElem->put_type(L"text");
    pInputElem->put_value(L"fassbender");
}

results matching ""

    No results matching ""