본문 바로가기
VisualStudio.C++.C#/코딩팁,함수활용,단편

MFC. CDialogEx, CDialog

by 리치굿맨 2016. 9. 22.
 

개요

   

CDialogEx 는 CDialog 에서 파생된 클래스이며, 대화상자 배경색변경, 배경이미지 추가가 간편해진것이므로 기존 CDialog 로 생성하던 것을 CDialogEx 로 생성하는 것은 아무 문제 일으키지 않음.



Name

Description

CDialogEx::SetBackgroundColor

Sets the background color of the dialog box.

CDialogEx::SetBackgroundImage

Sets the background image of the dialog box.



                 

Dialog box images are stored in a resource file. The framework automatically deletes any image that is loaded from the resource file. To programmatically delete the current background image, call the CDialogEx::SetBackgroundImage method or implement an OnDestroy event handler. When you call the CDialogEx::SetBackgroundImage method, pass in an HBITMAP parameter as the image handle. The CDialogEx object will take ownership of the image and delete it if the m_bAutoDestroyBmp flag is TRUE.


 


 


///978.


댓글0


.    
현물 |선물 인버스 |선물 USDT     현물 | 선물 USDT |봇제작툴/카피트레이딩     현물 |선물 인버스 |선물 USDT     .