Suppose i have 5 window to be created in which one is parent and the four window are child window. So on the parent window if i have to create four window then how should i implement the structure concept so as to reduce the code segment.?
Is this a good habit or not to use the structure concept?
Please reply thanks a lot.
Suppose u have a structure
Now create parent window like this at bool WINAPI InitInstance(HINSTANCE hInstance, int nCmdShow)
where coordinates is an object and width & height are data member of COORDINATES.
Now create the child window under WM_CREATE.
where “btns[4]” is an object of struct “AXIS”
and for each child window there is a different value which is specified from btns[0] to btns[3].
So in this way u can create your window using structure.
Yes its a good habit to use structure which reduces code segment and easy to implement.