I've looked everywhere for an answer, and hopefully it's because it's not been answered rather than my search terms lacking in detail. I know how to get and work with handles, I'm just asking a general question.
Every program I have made using MFC has the window handle #32770, but all other windows like edit boxes and such all have dynamic handles, so every time you open the program it's handle is different. How does the main program get it's handle, and is it possible to give any window a static name so that enumwindows or winspy++/similar tools aren't repeatedly necessary.