I've got a basic winapi app that I'm writing. I have a class, which contains an array of other classes. Since the code is quite long, and I suspect that I'm just doign it wrong, I'll just post some similar code - if I need to post the real thing, I can.
My problem is that when I call DestroyWindow, the control remains on the screen. I've invalidated the entire parent window, I've invalidated the control. I've even tried to hide the control, without luck. I can confirm that the HWND EditBox does become a NULL value after calling DestroyWindow.
for (int i=0;i<10;i++)
code follows this execution:
1) Create 'A'.
2) user interaction calls A.SomeFunction()
3) User interaction causes A.vars[somewhere].DestroyWindows() to be called
I know that I'm hitting the DestroyWindows function, as it will hit breakpoints, as well as do other cleanup within that function. It just won't make the child controls, whether Edit, Combobox, or Button, disappear.