Hi everyone,
I was wondering if someone could shed a light on what exactly is the function of enum { IDD = IDD_TAB_DIALOG); in the .h files when creating an MFC class. Thanks
Amish
Hi everyone,
I was wondering if someone could shed a light on what exactly is the function of enum { IDD = IDD_TAB_DIALOG); in the .h files when creating an MFC class. Thanks
Amish
It's just to abstract out "IDD_TAB_DIALOG" from the rest of the code. If you decide to change "IDD_TAB_DIALOG" to somthing else, you only have to do it in the one spot.
You could remove it and replace all instances of "IDD" with "IDD_TAB_DIALOG" buy why bother.
gg
Oh I see. Thanks
Amish