i'm finishing the label(STATIC) class, but i need some advices
i understand how can i create the control:
1 - build the class using WNDCLASS struture;
2 - i'm doing a superclass control, so i must get the main class with GetClassInfo();
3 - regist the class with RegisterClass();
4 - create the window with CreateWindowEx() and i must know the paren window(hwnd);
5 - the message loop and the window procedure.

i understand that, when i create the class instance, i must give it the parent. but if i want give it the main window, from the class, automatic. how can i get the main window without use the GetForegroundWindow() function?