我用sdk的方法,createwindows("STATIC",...这里第二个参数应该是什么?参数style中我用了SS_ICON,图标的ID是IDI_ICON2,文件名是icon2.ico
谢谢!

解决方案 »

  1.   

    用STM_SETIMAGE设置ICON
    STM_SETIMAGE
    An application sends an STM_SETIMAGE message to associate a new image with a static control.To send this message, call the SendMessage function with the following parameters. SendMessage( 
      (HWND) hWnd,              // handle to destination window 
      STM_SETIMAGE,             // message to send
      (WPARAM) wParam,          // image type
      (LPARAM) lParam           // handle to image (HANDLE)
    );