putra n9
Posts: 18
Joined: 2010-11-23
|
hi,
I want to know how to write a code in C++.Before this i write a code in VB.Following are my code.
Public WithEvents instHtmlButton As mshtml.HTMLButtonElement
Private Function instHtmlButton_onclick() As Boolean Handles instHtmlButton.onclick
MessageBox.Show("OK")
End Function
Private Sub IEModule_DocumentComplete(ByVal pDisp As Object, ByVal url As String) Handles Me.DocumentComplete
Me.instHtmlButton = Nothing
If (Not IsNothing(Me.HTMLDocumentObj())) Then
Me.instHtmlButton = Me.HTMLDocument.getElementById("sampleButton")
End If
End Sub |
|
Eugene Astafiev
Guest
|
Hi Putra,
Here is the raw sketch sample code:
private: System::Void adxieContextMenuCommandItem1_OnClick(System::Object^ sender, System::Object^ eventObject) {
System::Windows::Forms::MessageBox::Show("test");
}
private: System::Void IEModule_DownloadComplete() {
if (HTMLDocument()!=nullptr)
{
System::Object ^ obj = this->HTMLDocument()->getElementById("sampleButton");
}
} |
|
putra n9
Posts: 18
Joined: 2010-11-23
|
Hi Eugene,
I'm done, but a bit confuse, let say i put the code at IEModule.h,
on the IEModule.cpp how can i call it?
I'm try to learn something new. |
|
Eugene Astafiev
Guest
|
|