char* s=pApp->resPath;
strcat(s,"\\hl_logo.png");
字符串连接函数
CImage image;
CRect imageRect;
image.Load(imagePath);
m_Image.GetClientRect(&imageRect);
CDC *pDc = m_Image.GetWindowDC();
image.Draw(pDc->m_hDC,imageRect);
ReleaseDC(pDc);*/
在OnPaint函数中加入
CDialog::UpdateWindow();
mfc中读取配置ini文件,添加值等用到的:
WritePrivateProfileStringW( NULL, NULL, NULL, L"appname.ini" );
//向INI文件中添加一些键值
WritePrivateProfileString ("Section1", "FirstKey",
"It all worked out okay.", "appname.ini");
WritePrivateProfileString ("Section1", "SecondKey",
"By golly, it works.", "appname.ini");
WritePrivateProfileSection ("Section1", "ThirdKey = Another Test.",
"appname.ini");
//测试一下添加的正确性
GetPrivateProfileString ("Section1", "FirstKey",
"Bogus Value: Get didn't work", inBuf, 80,
"appname.ini");
http://blog.csdn.net/hailongchang/article/details/2291260
树形控件:
http://blog.sina.com.cn/s/blog_5420a8440100bl6u.html
strcat(s,"\\hl_logo.png");
字符串连接函数
CImage image;
CRect imageRect;
image.Load(imagePath);
m_Image.GetClientRect(&imageRect);
CDC *pDc = m_Image.GetWindowDC();
image.Draw(pDc->m_hDC,imageRect);
ReleaseDC(pDc);*/
在OnPaint函数中加入
CDialog::UpdateWindow();
mfc中读取配置ini文件,添加值等用到的:
WritePrivateProfileStringW( NULL, NULL, NULL, L"appname.ini" );
//向INI文件中添加一些键值
WritePrivateProfileString ("Section1", "FirstKey",
"It all worked out okay.", "appname.ini");
WritePrivateProfileString ("Section1", "SecondKey",
"By golly, it works.", "appname.ini");
WritePrivateProfileSection ("Section1", "ThirdKey = Another Test.",
"appname.ini");
//测试一下添加的正确性
GetPrivateProfileString ("Section1", "FirstKey",
"Bogus Value: Get didn't work", inBuf, 80,
"appname.ini");
http://blog.csdn.net/hailongchang/article/details/2291260
树形控件:
http://blog.sina.com.cn/s/blog_5420a8440100bl6u.html