<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [CSDN原創](https://blog.csdn.net/harvic880925/article/details/9331701/) ```c++ // LoadImageTest.cpp : 定義應用程序的入口點。 // #include "stdafx.h" #include "LoadImageTest.h" void OnPaint(HWND); void OnInitDialog(HWND); HINSTANCE g_hInst; INT_PTR CALLBACK WndProc(HWND hwnd,UINT uMsg,WPARAM wParam,LPARAM lParam) { switch(uMsg) { case WM_DESTROY: PostQuitMessage(0); break; case WM_CLOSE: EndDialog(hwnd,IDCANCEL); break; case WM_INITDIALOG: OnInitDialog(hwnd); break; case WM_COMMAND: switch(LOWORD(wParam)) { case IDCANCEL: EndDialog(hwnd,IDCANCEL); return TRUE; } break; case WM_PAINT: { OnPaint(hwnd); } break; } return FALSE; } void OnInitDialog(HWND hwnd) { //加載圖標 //HICON hIcon = LoadIcon(g_hInst,(LPCWSTR)IDI_ICON1);(方法一) HICON hIcon = (HICON) LoadImage(g_hInst,(LPCWSTR)IDI_ICON1,IMAGE_ICON,0,0,0);//(方法二) ::SendMessageA(hwnd,WM_SETICON,FALSE,(LPARAM)hIcon); } //hInstance 資源總管,如果有資源要加載則要設置hInstance全局變量 int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow) { g_hInst = hInstance; DialogBox(hInstance,(LPCWSTR)IDD_MAIN,NULL,WndProc); return FALSE; }; void OnPaint(HWND hwnd) { //加載背景圖 PAINTSTRUCT ps; HDC hdc = BeginPaint(hwnd,&ps);//界面DC //HBITMAP hBitmap = (HBITMAP)LoadImage(g_hInst,(LPCWSTR)IDC_WOLL,IMAGE_BITMAP,0,0,0);//(方法一)進程外 加載位圖第一個參數可以為NULL HBITMAP hBitmap = (HBITMAP)LoadBitmap(g_hInst,(LPCWSTR)IDC_WOLL);//(方法二) HDC hMemDC = CreateCompatibleDC(NULL); //創建內存DC SelectObject(hMemDC,hBitmap);//選擇位圖 BitBlt(hdc,0,0,280,210,hMemDC,0,0,SRCCOPY);//輸出 EndPaint(hwnd,&ps); //銷毀DC } ```
                  <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>

                              哎呀哎呀视频在线观看