I need to implement a GUI for a 3D modeling app. So far I have implemented a Windows Ribbon menu - now I need to add pannels to add controls to. The best I could find as a model so far are the Paint.net control pannels. So I'm looking for something that looks and behaves just like this.
Features I'm looking forward to mimic (all pictured above) :
So far here is what I achieved (code below) :
This is a very basic windows - several problems are obvious :
The code so far :
// Model structure pannel
wndClass.lpszClassName = "StructurePannel";
if (!RegisterClassEx(&wndClass)) return -1;
g_WindowHandlePannelStructure = CreateWindowEx(
WS_EX_TOPMOST,
"StructurePannel",
"Model Structure Pannel",
WS_BORDER | WS_CAPTION | WS_OVERLAPPED | WS_POPUP | WS_SIZEBOX | WS_VSCROLL,
CW_USEDEFAULT,
CW_USEDEFAULT,
300,
550,
NULL,
NULL,
hInstance,
NULL);
I'm looking for someone to give me a thorough Paint.net style pannel example - or to point me to a good code example. I have downloaded the latest open sourced PDN source code but not sure where to start looking for the code responsible for this part of the UI. An educated direction is welcome too :-)
Using CreateWindowEx(...)
and the extended window style WS_EX_TOOLWINDOW
should get you the desired appearance of the window frame.
It will also take care of:
But I'm not sure if/how it will influence the "always on top"-ness.