Gettin size of dialog template.
-
Hi all. Need some help. I'm not long in MFC. How to get size of dialog in template? I'm deriving from CFormView and I need to know what is the size of dialog in template. I can do this before or after window creation, but I don't know how in both times. Thanks
-
Hi all. Need some help. I'm not long in MFC. How to get size of dialog in template? I'm deriving from CFormView and I need to know what is the size of dialog in template. I can do this before or after window creation, but I don't know how in both times. Thanks
progDes wrote:
I need to know what is the size of dialog in template.
You can use
CDialogTemplate
member functionsGetSizeInDialogUnits
andGetSizeInPixels
. Here is a note from MS on this class' parent file (afxpriv.h)...// Note: This header file contains useful classes that are documented only
// in the MFC Technical Notes. These classes may change from version to
// version, so be prepared to change your code accordingly if you utilize
// this header. In the future, commonly used portions of this header
// may be moved and officially documented.Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com
-
progDes wrote:
I need to know what is the size of dialog in template.
You can use
CDialogTemplate
member functionsGetSizeInDialogUnits
andGetSizeInPixels
. Here is a note from MS on this class' parent file (afxpriv.h)...// Note: This header file contains useful classes that are documented only
// in the MFC Technical Notes. These classes may change from version to
// version, so be prepared to change your code accordingly if you utilize
// this header. In the future, commonly used portions of this header
// may be moved and officially documented.Nibu thomas Microsoft MVP for VC++ Code must be written to be read, not by the compiler, but by another human being. Programming Blog: http://nibuthomas.wordpress.com