在VC的resource中 Insert Icon,Icon是32*32大小,我改变大小后,程序始终认32*32大小的这个,如何让程序认我改变大小后的Icon

解决方案 »

  1.   

    点击图标,在device下拉框选择small icon
      

  2.   

    对图标的大小是由系统支持,只在创建时指定,无法随意改变。MSDNThe nWidth and nHeight parameters must specify a width and height supported by the current display driver, because the system cannot create icons of other sizes. To determine the width and height supported by the display driver, use the GetSystemMetrics function, specifying the SM_CXICON or SM_CYICON value.