MFC

MFC

16bit tiff read link

http://www.codeproject.com/Questions/494568/Displayingplus16plusBitplusRAWplusGRAYplusSCALEplu

MFC

StretchBlt() Parameter 설명

BOOL StretchBlt( int x, //그림을 나타낼 화면상의 좌표 int y, int nWidth, //화면에 나타낼 그림의 크기 int nHeight, CDC* pSrcDC, //그림이 저장된 MemDC int xSrc, //그림 중 잘라낼 부분의 시작점(LeftTop) int ySrc, int nSrcWidth, //그림 중 잘라낼 부분의 종점(RightBottom) int nSrcHeight, DWORD dwRop //적용할 래스터 연산 );

MFC

GetPrivateProfileString(), WritePrivateProfileString()

DWORD GetPrivateProfileString( LPCTSTR lpAppName, // section name : 가로"["를 제외한 값 입력 LPCTSTR lpKeyName, // key name LPCTSTR lpDefault, // default string :섹션이름이나 키이름을 찾지 못하면 디폴트로 출력할 스트링 LPTSTR lpReturnedString, // destination buffer: 찾은 값을 저장할 곳,ex) CHAR inBuf[80]; DWORD nSize, // size of destination buffer : 크기 LPCTSTR lpFileName // initialization file name : 파일 경로 및 파일 이름 );BOOL WritePrivatePro..

MFC

버튼에 이미지 입히기

헤더파일(.h)에 CBitmapButton 변수 추가. ex) CBitmapButton m_button; Button 속성에서 아래의 그림과 같이 Owner Draw 부분을 True로 변경한다. 그 후, 소스코드에서 다음과 작성 후, 실행하여 확인. m_button.LoadBitmaps(IDB_BITMAP1, IDB_BITMAP2, 0, 0); ※버튼 속성에서 Owner Draw 부분이 False이면 비트맵 적용되지 않는다.

MFC

클라이언트 영역 설정하여 윈도우 크기 조절하기

Dialog based일 때, OnInitDialog() 내에 다음과 같이 작성한다. RECT m_Rect = {0, 0, 1024, 768}; // 생성하고 싶은 사이즈를 RECT 변수에 초기화. 여기서는 1024x768로 설정하였다. AdjustWindowRect(&m_Rect, WS_OVERLAPPEDWINDOW, FALSE); int width = m_Rect.right - m_Rect.left; int height = m_Rect.bottom - m_Rect.top; this->SetWindowPos(NULL, 0, 0, width, height, 0);

MFC

[MFC]Dialog 창 조절 속성

속성 - 모양 - border - resizing 으로 설정.

Geuny
'MFC' 카테고리의 글 목록