Question

everybody,
can you tell me is there any ways to create new gui controls(for example accordion bar, etc) in win32 api. Please if you know tell me books or links for reading.
Thanks.

Was it helpful?

Solution

You can create your own "controls" by registering your own window classes, and supplying a custom WindowProc for that class which handles the drawing, and user interaction, and constituant controls (if any). If you want to make these available to different projects, you can add them to a DLL with an Init function that the app calls before creating a window of your own class.

MSDN would be the best place to start to get an understanding.

Depending on the intended use, there are also options to use ATL, MFC, .NET, QT or other framework, but most of them are simply wrappers around the above method.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top