12 2012 档案

摘要:参考:http://blog.csdn.net/desow/article/details/4592847环境是 XP + VC++6.0。按照方法1添加:把 .h 文件添加到以下目录:把GdiPlus.lib 添加到以下目录:接着是针对具体的工程设置:a. StdAfx.h 中:b. CXXXApp 类中声明两个变量:c. CXXXApp 类中的 InitInstance() 中调用 GdiplusStartup 方法:d. CXXXApp 类中声明ExitInstance 方法,并定义:!!!声明的时候我只是照猫画虎写的!!! 阅读全文
posted @ 2012-12-22 15:49 SubmarineX 阅读(239) 评论(0) 推荐(0)
摘要:环境:Win7(C:) + VS2010(D:)添加环境变量1、“PATH”中追加“D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin;D:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE”,分别为cl.exe 和mspdb100.dll 的路径。2、新建“INCLUDE”,“D:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include;C:\Program Files (x86)\Micro 阅读全文
posted @ 2012-12-17 22:56 SubmarineX 阅读(663) 评论(0) 推荐(0)
摘要:效果:分别拖动下方和上方滚动视图用数组把所有的UIScrollView对象储存起来。 1 #import "ViewController.h" 2 3 @interface ViewController () <UIScrollViewDelegate> 4 5 @end 6 7 @implementation ViewController 8 9 @synthesize scrollViews = _scrollViews;10 11 - (void)viewDidLoad12 {13 [super viewDidLoad];14 15 UIImageView 阅读全文
posted @ 2012-12-09 22:45 SubmarineX 阅读(1898) 评论(0) 推荐(0)
摘要:在上一篇博文《在滚动视图里添加图像视图,在图像视图里添加按钮控件》的基础上做了小小的改动。》》点击button1》》》》点击button2》》需要改写两个地方:@synthesize scrollView = _scrollView;- (void)viewDidLoad{ [super viewDidLoad]; // 配置 UIImageView 对象 UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"1.png"]]; imgView.userIn... 阅读全文
posted @ 2012-12-06 22:26 SubmarineX 阅读(14222) 评论(0) 推荐(1)
摘要:》》点击按钮“Button”》》》》绿底的是一张图片(1.png),截自苹果文档。第一个视图对应VC1:VC1 1 @synthesize scrollView = _scrollView; 2 3 - (void)viewDidLoad 4 { 5 [super viewDidLoad]; 6 7 // 配置 UIImageView 对象 8 UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"1.png"]]; 9 imgView.user... 阅读全文
posted @ 2012-12-04 20:40 SubmarineX 阅读(1960) 评论(0) 推荐(0)
摘要:Xcode 4.5.1自动排版: Editor->Structure->Re-Indent ^| 阅读全文
posted @ 2012-12-04 15:27 SubmarineX 阅读(256) 评论(0) 推荐(0)