如何在List Control中插入图像 [英] how to insert image in List Control

查看:112
本文介绍了如何在List Control中插入图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在List中的每个项目的第一个处插入一张小图片,当鼠标在图像上移动时,大图像出现... tks

解决方案

你想要的是使控件成为用户绘制控件。向Google索取参考资料。会有很多点击。


 #include< iostream.h> 
使用 命名空间标准;

int main(){
int x,y;
cout<< 你的身高是多少?<< \\\
your feet:
;
cin>> x;
cout<< 你的英寸:;
cin>> y;
cout<< 你的身高是:<< x<< << << y<< ' ;
cout<< \ n你很高!;

返回 0 ;}


i want to insert a small picture at the first of every item in List, when mouse move on the image ,the big image appear...tks

解决方案

What you want is to make the control a "user drawn" control. Ask Google for references. There will be many hits.


#include<iostream.h>
using namespace std;

int main() {
  int x, y;
  cout<<"what is your height?"<<"\nyour feet: ";
  cin>>x;
  cout<<"your inches: ";
  cin>>y;
  cout<<"your height is: "<<x<<"'"<<" and "<<y<<"''";
  cout<<"\nYou are tall!";

  return 0;}


这篇关于如何在List Control中插入图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆