바꾸기 썸네일형 리스트형 MFC, CDialog 창 크기 변화에 따라 내부 control 크기 자동 변경, sample source 퍼왔읍니다. // This OnSize function resizes one large control in a dialog. // The one control grows horizontally and vertically to fill the dialog. It's position remains unchanged.// Other controls (buttons etc) would typically be above the one resizable control.// How to add OnSize:// [1] add to .h: afx_msg void OnSize(UINT nType, int cW, int cH);// [2] add to message map in .cpp.. 더보기 [MFC] Picture Control 로 image(BMP) 보여주기, 바꾸기 차례 가. 이미지 보여주기 나. 버튼 눌러 이미지 바꾸어 보여주기 가. 이미지 보여주기 1. 이미지 지정 - 먼저 image1.bmp, image2.bmp 를 만들어 ~/res 에 가져다 놓는다 - Project - Add - resource - Bitmap - import - 하여 파일 선택 한다. - 두번 하고, 보면, ~.rc 에 IDB_BITMAP1, IDB_BITMAP2 가 생긴다. 이것을 IDB_BITMAP_CarOUT, IDB_BITMAP_CarIN 으로 바꾼다 ( 맘대로 정하셔요) 2. 다이얼 로그 에서 Ctrl-Alt-X 해서 나오는 Toolbox 에서 - Picture Control 1개 추가, 3. Picture Control 의 Property 변경 - 기본 ID가 IDC_STATI.. 더보기 이전 1 다음