資源簡(jiǎn)介
工具是為制作QQ皮膚的人準(zhǔn)備的,源代碼是為vc程序員準(zhǔn)備的。本壓縮包即提供編譯好的可執(zhí)行程序,又提供了程序的源代碼。
工具的作用是把Tencent公司QQ皮膚使用的Gft圖像格式,轉(zhuǎn)成Png或Bmp格式,當(dāng)選擇包含Gft文件的文件夾時(shí),支持批量轉(zhuǎn)換文件夾下及子文件夾下所有Gft文件。
此工具是喜歡制作QQ皮膚的美工朋友或喜歡仿QQ界面的開發(fā)人員必備工具。

代碼片段和文件信息
//?GftToImage.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“GftToImage.h“
#include?“MainFrm.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif
/////////////////////////////////////////////////////////////////////////////
//?CGftToImageApp
BEGIN_MESSAGE_MAP(CGftToImageApp?CWinApp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CGftToImageApp?construction
CGftToImageApp::CGftToImageApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
m_pframe?=?NULL;
gdiplusToken?=?NULL;
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CGftToImageApp?object
CGftToImageApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CGftToImageApp?initialization
BOOL?CGftToImageApp::InitInstance()
{
//?Initialize?GDI+
GdiplusStartupInput?gdiplusStartupInput;
GdiplusStartup(&gdiplusToken?&gdiplusStartupInput?NULL);
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
//?Change?the?registry?key?under?which?our?settings?are?stored.
//?TODO:?You?should?modify?this?string?to?be?something?appropriate
//?such?as?the?name?of?your?company?or?organization.
SetRegistryKey(_T(“Local?AppWizard-Generated?Applications“));
//?Change?the?path?under?which?your?skin?files?are?stored.
if?(CUIMgr::SetUIPath(_T(“Skins\\GftToImage\\the.xui“))?!=?0)
{
AfxMessageBox(_T(“Failed?to?set?the?ui?path?or?the?ui?path?isn‘t?exist!“));
return?FALSE;
}
//?To?create?the?main?window?this?code?creates?a?new?frame?window
//?object?and?then?sets?it?as?the?application‘s?main?window?object.
m_pframe?=?new?CMainframe;
m_pMainWnd?=?m_pframe;
//?create?and?load?the?frame?with?its?resources
BOOL?bRet?=?m_pframe->Loadframe(IDR_MAINframe?
WS_POPUP|WS_CLIPCHILDREN|WS_SYSMENU|WS_MINIMIZEBOX|WS_MAXIMIZEBOX?NULL);
if?(!bRet)
{
DWORD?dwLastError?=?m_pframe->GetLastCreateError();
switch?(dwLastError)
{
case?E_LOADBMPB:?//?1?failed?to?load?the?base?image
case?E_LOADBMPN:?//?2?failed?to?load?the?background?image?of?normal?status(end?by?_N.bmp)
case?E_LOADBMPH:?//?3?failed?to?laod?the?background?image?of?highlight?status(end?by?_H.bmp)
case?E_LOADBMPD:?//?4?failed?to?load?the?background?image?of?disable?status(end?by?_D.bmp)
case?E_LOADBMPS:?//?5?failed?to?load?the?background?image?of?selected?status(end?by?_S.bmp)
case?E_LOADBMPC:?//?6?failed?to?load?the?background?image?of?checked?status(end?by?_C.bmp)
TRACE(_T(“Failed?to?load?background?image“));
break;
case?E_ATTACHBMPB:?//?50?failed?to?attach?the?HBITMAP?of?base?image?to?CBitmap?object
case?E_ATTACHBMPN:?//?51?failed?to?atta
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-11-21?11:45??GftToImage\
?????目錄???????????0??2011-11-21?11:46??GftToImage\Bin\
?????文件?????1052672??2011-11-20?23:40??GftToImage\Bin\GftToImage.exe
?????目錄???????????0??2011-11-21?11:35??GftToImage\Bin\skins\
?????目錄???????????0??2011-11-21?11:35??GftToImage\Bin\skins\GftToImage\
?????文件????????3545??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\btn_close_disable.png
?????文件????????3568??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\btn_close_down.png
?????文件????????3521??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\btn_close_highlight.png
?????文件????????3538??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\btn_close_normal.png
?????文件????????3265??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\btn_mini_down.png
?????文件????????3267??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\btn_mini_highlight.png
?????文件????????3174??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\btn_mini_normal.png
?????文件????????2943??2011-11-20?13:46??GftToImage\Bin\skins\GftToImage\checkbox_disable.png
?????文件????????2941??2011-11-20?13:46??GftToImage\Bin\skins\GftToImage\checkbox_hightlight.png
?????文件????????2961??2011-11-20?13:46??GftToImage\Bin\skins\GftToImage\checkbox_normal.png
?????文件????????3188??2011-11-20?13:46??GftToImage\Bin\skins\GftToImage\checkbox_tick_disable.png
?????文件????????3216??2011-11-20?13:46??GftToImage\Bin\skins\GftToImage\checkbox_tick_highlight.png
?????文件????????3241??2011-11-20?13:46??GftToImage\Bin\skins\GftToImage\checkbox_tick_normal.png
?????文件????????3106??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\login_btn_down.png
?????文件????????3190??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\login_btn_focus.png
?????文件????????3296??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\login_btn_highlight.png
?????文件????????3257??2011-11-14?17:46??GftToImage\Bin\skins\GftToImage\login_btn_normal.png
?????文件???????54536??2011-11-20?23:52??GftToImage\Bin\skins\GftToImage\Logo.png
?????文件???????24735??2011-11-20?23:16??GftToImage\Bin\skins\GftToImage\Main.png
?????文件????????3012??2011-11-20?13:49??GftToImage\Bin\skins\GftToImage\OldBroadcast_head.png
?????文件????????3354??2011-11-20?13:28??GftToImage\Bin\skins\GftToImage\radiobtn_highlight.png
?????文件????????3298??2011-11-20?13:28??GftToImage\Bin\skins\GftToImage\radiobtn_normal.png
?????文件????????3450??2011-11-20?13:28??GftToImage\Bin\skins\GftToImage\radiobtn_tick_highlight.png
?????文件????????3385??2011-11-20?13:28??GftToImage\Bin\skins\GftToImage\radiobtn_tick_normal.png
?????文件?????????790??2011-11-20?23:37??GftToImage\Bin\skins\GftToImage\Resource.h
?????文件???????32812??2011-11-20?23:37??GftToImage\Bin\skins\GftToImage\the.xui
............此處省略18個(gè)文件信息
- 上一篇:Dcmtk3.6.2
- 下一篇:PIC16F1829中文資料
評(píng)論
共有 條評(píng)論