Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Window without client area in WinAPI

Tags:

c++

c

winapi

On these screenshots we can see unordinary window frame in different applications:

  • QIP logo on its login window frame (not client area) - http://postimage.org/image/2fdjg0h44/
  • Buttons (back/next) and address field on the Windows 7 explorer window frame - http://postimage.org/image/2fdrpp7l0/
  • In Google Chrome tabs take place on the window frame

In all these windows client area is resized or/and replaced. Of course, it works with Windows Aero theme only.

I want to resize and replace client area of my window or hide it at all if it is possible. (C/C++ and Win API). How can I do it?

like image 918
lem0nify Avatar asked Oct 12 '11 21:10

lem0nify


People also ask

What is the non client area of a window?

Not client area is the area of a window where operating system constructs borders, title bar, menu bar, minimize/maximize button and exit button etc. Non client area is generally under control of operating system and depending on the themes selected by user it changes its appearance.

What is the client area of a window?

The client area is the part of the window which can contain controls. It excludes the window's title bar, menu (if it has a standard one) and borders.

What is a client area?

Client Area a section on the Company's website dedicated to each Client containing information addressed to the specific Client and through which the Company and the Client may interact.


1 Answers

That effect is accomplished using the DwmExtendFrameIntoClientArea function.

like image 136
Remy Lebeau Avatar answered Oct 12 '22 00:10

Remy Lebeau