PDA

View Full Version : What is better to define dialog ids?


UploaD
13/02/2015, 08:04 PM
Hello there i was wondering what is better to define dialog ids..

#1


enum Dialog_IDS
{
Dialog_Login
Dialog_Register
Dialog_Name
}

#2


#define Dialog_One 1
#define Dialog_Two Dialog_One+1
#define Dialog_Three Dialog_One+2

Mellnik
13/02/2015, 08:09 PM
Actually you can answer that question yourself. The first one allows you to change any entries without breaking others.

TuNiSiAnO1
13/02/2015, 08:24 PM
For me, #2