I have been working on a small test application for a minute, and I have several window objects floating around, and each of them calls RegisterWindowEx with the same WNDCLASSEX structure (mainly because they are all instances of the same class).
The first one is registered in order, then several of them fail, saying that the class is already registered - as expected.
My question is this bad? I was thinking of using a hash table to store the ATOM results to look before calling RegisterWindow, but it looks like Windows is already doing this?
source
share