No, one should not call main from anywhere. It is the designated entry point for CLI programs. For GUI programs in windows the entry point is WinMain.
This is a bit confusing. How is it you have a button in a window with a CLI program?
If you want to learn how to use OpenGL in a WinForms app there are several articles here that describe it. A search at this site turns up these:
CodeProject Search[
^]