<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ```c++ #include <Windows.h> #include "../DuiLib/UIlib.h" #include <iostream> using namespace DuiLib; using namespace std; #ifdef _DEBUG # ifdef _UNICODE # pragma comment(lib, "DuiLib.lib") # else # pragma comment(lib, "DuiLib_d.lib") # endif #else # ifdef _UNICODE # pragma comment(lib, "DuiLib.lib") # else # pragma comment(lib, "DuiLib_d.lib") # endif #endif class CDuiFramWnd : public CWindowWnd, public INotifyUI { public : virtual LPCTSTR GetWindowClassName()const {return _T("DUIMainFram");} virtual void Notify(TNotifyUI& msg){ if (msg.sType == _T("click")) { if (msg.pSender->GetName() == _T("btmHello")) ::MessageBox(NULL,_T("我是按鈕"),_T("點擊了按鈕"),MB_OK); } } virtual LRESULT HandleMessage(UINT uMsg,WPARAM wParam,LPARAM lParam) { //WM_NCCALCSIZE WM_NCCALCSIZE WM_NCPAINT 禁用標題欄 LRESULT lRes = 0; switch(uMsg) { case WM_CREATE: { CControlUI* pWnd = new CButtonUI; pWnd->SetName(_T("btmHello"));//控件唯一標識,必須唯一 pWnd->SetText(_T("Hello World")); pWnd->SetBkColor(0xFF00FF00); // 設置背景色 m_PaintManager.Init(m_hWnd); m_PaintManager.AttachDialog(pWnd); m_PaintManager.AddNotifier(this);//添加控件消息相應,消息會傳達到duilib 的消息循環,可以在Notify函數里做消息處理 return lRes; } case WM_NCACTIVATE: { if (!::IsIconic(m_hWnd)) return (wParam == 0) ? TRUE : FALSE; } case WM_NCCALCSIZE: return FALSE; case WM_NCPAINT: return FALSE; } if( m_PaintManager.MessageHandler(uMsg, wParam, lParam, lRes) ) { return lRes; } return __super::HandleMessage(uMsg, wParam, lParam); } protected: CPaintManagerUI m_PaintManager; }; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow) { CPaintManagerUI::SetInstance(hInstance); CDuiFramWnd duiFrame; duiFrame.Create(NULL, _T("DUIWnd"), UI_WNDSTYLE_FRAME, WS_EX_WINDOWEDGE); duiFrame.ShowModal(); return 0; }
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看