Thanks for your response Optik,
I have tested something for creation of display list and just i want to share this.
I have tested the creation of display list in two different way.
I created the display list within the OnCreate(LPCREATESTRUCT lpCreateStruct) function in both the control.
In this, i created the display list within the invoke method [ GenerateLists() ] in both the control.
I used the message box to display the generated base list id (which is returned from glGenLists) in both the control.
In first condition, the base list id of both controls are same. i.e. it start with list id 1.
In second condition, i called those two invoke methods in my application in which the base list id of both controls returned from glGenLists are different. i.e. For first control the list id start with 1 and for the second it start with 334.
But in this condition, the lists of one control(Ctrl2) only executed properly which is recently inserted control in my application and lists of another control(Ctrl1) are not executing.
Note: Ctrl1 is inserted first in application and Ctrl2 is inserted second in application.
And i have tested the reverse condition also i.e. Ctrl2 is inserted first and Ctrl1 is inserted second in application. In this situation, the lists of Ctrl1 are executing properly and the lists of Ctrl2 are not executing.
Do you have any idea about this?