📄 mapsizebyhandle.cpp
字号:
// MapSizeByHandle.cpp: implementation of the CMapSizeByHandle class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resourceeditor.h"
#include "MapSizeByHandle.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CMapSizeByHandle::CMapSizeByHandle()
{
}
CMapSizeByHandle::~CMapSizeByHandle()
{
DeleteAll();
}
void CMapSizeByHandle::SetSizeInfo(DWORD dwKey, DWORD dwOldSize, DWORD dwNewSize)
{
_ASSERTE( dwKey > 0 );
SIZE_INFO sti;
sti.dwOldSize = dwOldSize;
sti.dwNewSize = dwNewSize;
m_mapSize.SetAt(dwKey, sti);
}
BOOL CMapSizeByHandle::GetNextAssoc( POSITION &pos, DWORD &dwKey, DWORD &dwOldSize, DWORD &dwNewSize )
{
SIZE_INFO sti = { 0 };
if(pos != NULL )
{
m_mapSize.GetNextAssoc(pos, dwKey, sti);
dwOldSize = sti.dwOldSize;
dwNewSize = sti.dwNewSize;
return TRUE;
}
return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -