Visual Studio 2013 GUI replication in winapi

I am writing a GUI program using C ++ and Winapi, and I want my window to have a user border. Visual Studio 2013 on Windows Desktop does this by replacing the typical window frame with its own scheme, while still functioning like a regular window with a close, minimize and restore button, and also with the ability to move.

A long way to do this would be to create a window with the WS_POPUP style and intercept mouse events using collision detection. However, given that Microsoft itself created programs with different GUI styles, it occurred to me that there might be a more standardized way to do this. To be clear, I'm not interested in using third-party APIs like QT or GTK. I want to do this exclusively with the libraries that Microsoft provides. Given these limitations, is there another way to do this?

+7
c ++ visual-studio-2013 winapi
source share
1 answer

Take a look at this example of a custom hand-drawn window .

To get the β€œcustom painted window” effect, you need to paint non-client portions of the window using WM_NCPAINT .

Here are some related questions:

  • How to create a password window using winapi?
  • How to draw custom border in win32?
  • Image of a client without a window .
+2
source share

All Articles