📄 sybtooldlg.h
字号:
// SYBToolDlg.h : header file
//
#if !defined(AFX_SYBTOOLDLG_H__D81D4DC0_1B68_46A1_BD7D_E23E7F29B257__INCLUDED_)
#define AFX_SYBTOOLDLG_H__D81D4DC0_1B68_46A1_BD7D_E23E7F29B257__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ResizableDialog.h"
#include "SYBTool.h" // Added by ClassView
#include "TWScriptEdit.h" // Added by ClassView
#include "Split.h"
/////////////////////////////////////////////////////////////////////////////
// CSYBToolDlg dialog
#define WM_MSG_STATUS (WM_USER+1000)
#define WM_MSG_RESULT (WM_USER+1001)
class CSYBToolDlg : public CResizableDialog
{
// Construction
private:
static DWORD CALLBACK EditStreamCallbackReadFromFile(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb);
static DWORD CALLBACK EditStreamCallbackWriteFromFile(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb);
public:
bool ExecureSql( LPSTR buff );
CString m_strSQlName;
HANDLE hEventExeSQL;
BOOL m_bUseColor;
CStatusBar m_wndStatusBar;
int nSybaseEngine;
void SaveServerMsg();
void OnSYBRResult( WPARAM , LPARAM);
bool DoPromptFileName(CString& fileName, UINT nIDSTitle, DWORD lFlags, BOOL bOpenFileDialog);
CSYBToolDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CSYBToolDlg)
enum { IDD = IDD_SYBTOOL_DIALOG };
CButton m_chkAnys;
CTWScriptEdit m_wndScriptEdit;
CRichEditCtrl m_status;
CEdit m_use;
CEdit m_srv;
CEdit m_pwd;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CSYBToolDlg)
public:
virtual BOOL DestroyWindow();
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CSYBToolDlg)
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnLogin();
afx_msg void OnLogout();
afx_msg void OnStatus( LPSTR w, long p);
afx_msg void OnCexecsql();
afx_msg void OnFileopenSql();
afx_msg void OnSqlcolor();
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnCancelMode();
afx_msg void OnCaptureChanged(CWnd *pWnd);
afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
afx_msg void OnFileSaveSql();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_SYBTOOLDLG_H__D81D4DC0_1B68_46A1_BD7D_E23E7F29B257__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -