csdn 博客 html 模式 写博客 方法

添加 代码片段

          switch (LOWORD (wParam))
          {
          case IDM_FILE_OPEN:

                    // Show the File Open dialog box

               if (!GetOpenFileName (&ofn))
                    return 0 ;
               
                    // If there's an existing packed DIB, free the memory

               if (pPackedDib)
               {
                    free (pPackedDib) ;
                    pPackedDib = NULL ;
               }
               
                    // If there's an existing logical palette, delete it

               if (hPalette)
               {
                    DeleteObject (hPalette) ;
                    hPalette = NULL ;
               }
               
                    // Load the packed DIB into memory

               SetCursor (LoadCursor (NULL, IDC_WAIT)) ;
               ShowCursor (TRUE) ;

               pPackedDib = PackedDibLoad (szFileName) ;

               ShowCursor (FALSE) ;
               SetCursor (LoadCursor (NULL, IDC_ARROW)) ;

               if (pPackedDib)
               {
                         // Create the palette from the DIB color table

                    hPalette = PackedDibCreatePalette (pPackedDib) ;
               }
               else
               {
                    MessageBox (hwnd, TEXT ("Cannot load DIB file"), 
                                szAppName, 0) ;
               }
               InvalidateRect (hwnd, NULL, TRUE) ;
               return 0 ;
          }
          break ;

添加 图片




https://img-blog.csdn.net/20180629172934274?watermark/2/text/aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dvd29jcHA=/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70

去掉水印的方法

双击图片,删除 watermark 字段




扫描二维码关注公众号,回复: 1802103 查看本文章



猜你喜欢

转载自blog.csdn.net/wowocpp/article/details/80859727
今日推荐