// JavaApiToolDlg.cpp: implementation of the CJavaApiToolDlg class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "VisualJava.h" #include "JavaApiToolDlg.h" #include "JavaApiTool.h" #include "JavaApiViewerDlg.h" #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// UINT ParseHandler(LPVOID pData) { //CJavaApiTool tool((CWnd*)pData); //tool.WriteJavaApi(); //CWnd* pWnd = (CWnd*)pData; //pWnd->SetWindowText(_T("Finished!")); return 0; } CJavaApiToolDlg::CJavaApiToolDlg(CWnd* pParent /*= NULL*/) : CSAPrefsSubDlg(CJavaApiToolDlg::IDD, pParent) { } CJavaApiToolDlg::~CJavaApiToolDlg() { } void CJavaApiToolDlg::DoDataExchange(CDataExchange* pDX) { CSAPrefsSubDlg::DoDataExchange(pDX); //{{AFX_DATA_MAP(CJavaApiToolDlg) // NOTE: the ClassWizard will add DDX and DDV calls here //}}AFX_DATA_MAP } BEGIN_MESSAGE_MAP(CJavaApiToolDlg, CSAPrefsSubDlg) //{{AFX_MSG_MAP(CJavaApiToolDlg) // NOTE: the ClassWizard will add message map macros here //}}AFX_MSG_MAP ON_BN_CLICKED(IDC_BUTTON_PARSE,OnParseApi) ON_BN_CLICKED(IDC_VIEW_PACKAGES,OnViewPackages) END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CJavaApiToolDlg message handlers void CJavaApiToolDlg::OnParseApi() { //AfxBeginThread(ParseHandler,GetDlgItem(IDC_STATIC_STATUS)); ParseHandler(GetDlgItem(IDC_STATIC_STATUS)); } void CJavaApiToolDlg::OnViewPackages() { CJavaApiViewerDlg dlg; dlg.m_apiTool.m_pStatusWnd = GetDlgItem(IDC_STATIC_STATUS); dlg.DoModal(); }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)