首页 > 代码库 > 123

123

// MapClientDlg.h : header file//#pragma once#include "OpenGLControl.h"#include "afxwin.h"#include "CSocket.h"// CMapClientDlg dialogclass CMapClientDlg : public CDialogEx{// 变量定义private:    // 控件变量    COpenGLControl m_oglWindow;    CStatic m_staticCoordinate;    CButton m_btnTest;    CButton m_setPose;    CButton m_navTarget;// Constructionpublic:    CMapClientDlg(CWnd* pParent = NULL);    // standard constructor// Dialog Data    enum { IDD = IDD_MAPCLIENT_DIALOG };    protected:    virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support// Implementationprotected:    HICON m_hIcon;    // 初始化对话框    virtual BOOL OnInitDialog();    // 调整布局    void AdjustLayout();    // 消息函数    afx_msg void OnSysCommand(UINT nID, LPARAM lParam);    afx_msg void OnPaint();    afx_msg HCURSOR OnQueryDragIcon();    afx_msg void OnSize(UINT nType, int cx, int cy);    afx_msg BOOL OnEraseBkgnd(CDC* pDC);    afx_msg void OnBnClickedButtonTest();    DECLARE_MESSAGE_MAP()public:     // 设置坐标点到m_staticCoordinate文本框中    void SetCoordinate(float x, float y);    CStatic m_staticMsg;    CSocket m_topic;    BOOL m_bConnect;};

123