|
Why not just use an array of HWNDs?
HWND myWindows[3];
myWindows[0]=CreateWindow(...);
or, as you're doing it in a loop:
for(i=0; i<3; i++) { myWindows[i]=CreateWindow(...); }
You said you don't want a workaround unless there is no other way but it would help to understand exactly why you want to use individual variables and an array of pointers to those variables and why this is preferred over simply using an array of HWNDs. What does an array of pointers to HWND do that an array of HWNDs doesn't do?
|