You really should visit sulaco as it has a demo, including source about selecting objects .

I assume you already have some code for creating your opengl window. I also assume, you're using the CreateWindowEx function somehere in there.
This page has detailed info about it, including info on how to create for example borderless or non resizable windows.