当前位置: 代码迷 >> VC/MFC >> 小白有关问题,关于图标资源
  详细解决方案

小白有关问题,关于图标资源

热度:87   发布时间:2016-05-02 03:41:08.0
小白问题,关于图标资源
我有一个图标文件里面有张64*64*32的BMP
可是我用LoadIcon加载的都是32位的,怎么才能加载大小最大的那一张呢?
------解决思路----------------------
"This function has been superseded by the LoadImage function"

LoadImage
The LoadImage function loads an icon, cursor, or bitmap.

HANDLE LoadImage(
  HINSTANCE hinst,   // handle of the instance containing the image
  LPCTSTR lpszName,  // name or identifier of image
  UINT uType,        // type of image
  int cxDesired,     // desired width
  int cyDesired,     // desired height
  UINT fuLoad        // load flags
);


------解决思路----------------------
使用LoadImage指定期望的大小
  相关解决方案