hi all,
1.i have derived a class from CStatic called CLed_arr. 2.a cstatic control named IDC_leds was added to the dialog window in resource editor. 3.a member var called m_led_arr of the class CLed_arr was created for this IDC_leds. 4.the class CLed_arr contains an array Led[16] of objects of class CLed. 5.the class CLed itself is derived from CStatic. 6.i did'nt want to put these 16 led windows in resource editor,but wanted to create them at run time.for creation of these 16 windows the co-ordinates of the mother window i.e.IDC_leds are required.i tried the creation process in the CLed_arr constructor.but probably at this instant the window of the class is not available so i get exception.so i wanted to do it using some message handler using the creation the window message of this class i.e. CLed_arr.but the only message available for this class is BN_CLICKED.
7.pls help me in understanding as to why only BN_CLICKED message is available for this window,also what is the method if any available for adding additional messages for this window. 8.i'm able to create these 16 windows if i create them in OnitDialog(),but i want to develop this CLed_arr as a class whose basic procedures are within the class.
pls. hlp.
thnx