Assigning a member variable...
-
Hi! I've just created a button by code, and i would like to have in the same class where it has been created, its control member variable, what i have is : botao->Create("Cancel", WS_CHILD|WS_VISIBLE, CRect(10, y+120, 60, y+170), this, 1232123); I use this ast argumento to give it a name and then i edited Resource.h and write : #define IDNB_TESTE 1232123, 'assigning' that id number to a name, which i would use in DDX: DDX_Control(pDX, IDNB_TESTE, m_teste); then i tried to use the m_teste variable, but i kept receiving errors, what ave i done wrong? How can i do this? Thank you for your time
-
Hi! I've just created a button by code, and i would like to have in the same class where it has been created, its control member variable, what i have is : botao->Create("Cancel", WS_CHILD|WS_VISIBLE, CRect(10, y+120, 60, y+170), this, 1232123); I use this ast argumento to give it a name and then i edited Resource.h and write : #define IDNB_TESTE 1232123, 'assigning' that id number to a name, which i would use in DDX: DDX_Control(pDX, IDNB_TESTE, m_teste); then i tried to use the m_teste variable, but i kept receiving errors, what ave i done wrong? How can i do this? Thank you for your time
I found it, i had just to had BS_PUSHBUTTON and process the ON_BT_CLICKED message with the id i had chose to the function. Thank you the same