夢幻之旅

          DEBUG - 天道酬勤

             :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            671 隨筆 :: 6 文章 :: 256 評(píng)論 :: 0 Trackbacks
          class CMyApp:public CWinApp
          {
          public:
              
          virtual BOOL InitInstance();
          }
          ;

          class CMainWindow:public CFrameWnd
          {
          public:
              CMainWindow();
          protected:
              afx_msg 
          void OnPaint();
              DECLARE_MESSAGE_MAP()
          }
          ;


          #include <afxwin.h>
          #include 
          "Hello.h"
          CMyApp myAPP;

          BOOL CMyApp::InitInstance()
          {
              m_pMainWnd 
          = new CMainWindow;
                 m_pMainWnd->SetIcon(LoadIcon(IDI_ICON1),TRUE);
              m_pMainWnd
          ->ShowWindow(m_nCmdShow);
              m_pMainWnd
          ->UpdateWindow();
              
          return TRUE;
          }


          BEGIN_MESSAGE_MAP(CMainWindow,CFrameWnd)
              ON_WM_PAINT()
          END_MESSAGE_MAP()

          CMainWindow::CMainWindow()
          {
              Create(NULL,_T(
          "aaa"));
          }


          void CMainWindow::OnPaint()
          {
              CPaintDC dc(
          this);
              CRect rect;
              GetClientRect(
          &rect);
              dc.DrawText(_T(
          "ad"),-1,&rect,DT_SINGLELINE|DT_CENTER|DT_VCENTER);
          }


          Project Setting
          General
          Use of MFC 選擇 Use MFC in a Shared DLL
          posted on 2009-08-19 18:51 HUIKK 閱讀(278) 評(píng)論(0)  編輯  收藏 所屬分類: C/C++

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 班戈县| 股票| 莒南县| 兴隆县| 大田县| 镇沅| 吉林市| 定远县| 渝北区| 会宁县| 崇义县| 栖霞市| 睢宁县| 博客| 怀柔区| 宁蒗| 绥德县| 新竹市| 黔江区| 乌兰察布市| 梅州市| 项城市| 灯塔市| 丰台区| 淮滨县| 塘沽区| 公安县| 天水市| 宁化县| 丹棱县| 扎鲁特旗| 荔波县| 平谷区| 牙克石市| 永川市| 都江堰市| 房产| 屏边| 泊头市| 馆陶县| 冀州市|