⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 loadmapcontrol.cpp

📁 地理信息系统ArcEngine二次开发:实现读取地图文档功能。
💻 CPP
字号:
// LoadMapControl.cpp : Implementation of WinMain


#include "stdafx.h"
#include "resource.h"
#include "LoadMap.h"

// This is not a COM module but we need this to ensure ATL will pick up the resource instance
CComModule _Module;


extern "C" int WINAPI _tWinMain(HINSTANCE hInstance,
                     HINSTANCE hPrevInstance,
                     LPSTR     lpCmdLine,
                     int       nCmdShow)
{
  ::CoInitialize(NULL);
  _Module.Init(NULL, hInstance);

  // make sure all COM pointers are released (inside CLoadMap) before CoUninitialize is called
  {
    CLoadMap dlg;      //create an instance of the class
    dlg.Create(NULL);  //create the main window, the NULL, means it will be the main window
    dlg.ShowWindow(SW_SHOWNORMAL); //show it

    // Main message loop:
    MSG msg;
    while (GetMessage(&msg, NULL, 0, 0)) 
    {
      TranslateMessage(&msg);
      DispatchMessage(&msg);
    }
  }

  ::CoUninitialize();

  return 0;

} 


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -