ICO
BMP
CUR
BeginUpdateResource()
EndUpdateResource()
UpdateResource()
RT_RCDATA
LoadLibrary()
FreeLibrary()
FindResource()
LoadResource()
FreeResource()
DestroyAcceleratorTable() // Accelerator table
DeleteObject() // Bitmap
DestroyCursor() // Cursor
DestroyIcon() // Icon
DestroyMenu() // Menu
LockResource()
//UnlockResource()
SizeofResource() // ?
LoadMenu()
SetMenu()
CreateMenu()
DestroyMenu()
LoadImage()
IMAGE_BITMAP
IMAGE_ICON
IMAGE_CURSOR
LR_DEFAULTCOLOR
LR_LOADFROMFILE
LR_SHARED
DeleteObject()
DestroyIcon()
DestroyCursor()
DrawIconEx()
ExtractIcon()
DestroyIcon()
DrawIcon()
ImageList_LoadImage()
ImageList_Destroy()
ImageList_Draw()
LoadCursor()
한번만 로드한다.
CreateCursor()
DestroyCursor()
SetCursor()
마우스가 캡쳐되어 있는 동안에 활성화 된다.
SetCursor(LoadCursor(NULL,IDC_WAIT));
...
SetCursor(LoadCursor(NULL,IDC_ARROW));
LoadIcon()
한번만 로드한다. // 읽기 전용
DrawIcon()
CreateIcon()
DestroyIcon()
LoadBitmap()
CreateBitmap()
DeleteObject()
deletes a logical pen, brush, font, bitmap, region, or palette
LoadAccelerators()
CreateAcceleratorTable()
DestroyAcceleratorTable()
LoadCursor()
c.f. CWaitCursor
SetCursor()
LoadString()
GetFileVersionInfo()
VerQueryValue()
캐럿
CreateCaret()
DestroyCaret()
/////////////////////////////////////////////////////////////////////////////
//
// TXT
//
IDR_TXT1 TXT DISCARDABLE "res\\약관.txt"
void CTry01Dlg::OnButton1()
{
// TODO: Add your control notification handler code here
HINSTANCE hInst = AfxGetInstanceHandle();
HANDLE hResInfo = ::FindResource( hInst, MAKEINTRESOURCE( IDR_TXT1 ), "TXT" );
HANDLE hRes = ::LoadResource( (HMODULE) hInst, (HRSRC) hResInfo );
LPSTR lpRes = (LPSTR) ::LockResource( hRes );
AfxMessageBox(lpRes);
//::UnlockResource( hRes );
}
참조 사이트: