[WinAPI] Ce este o fereastra overlapped?

Folosire Windows API in programe C/C++ (forum moderat)
Post Reply
User avatar
Ovidiu Cucu
Fondator
Fondator
Posts: 3776
Joined: 11 Jul 2007, 16:10
Judet: Iaşi
Location: Iasi
Contact:

[WinAPI] Ce este o fereastra overlapped?

Post by Ovidiu Cucu » 27 Jan 2010, 09:15

Q: Ce este o fereastra overlapped?

A: O fereastra overlapped este o fereastra top-level care are bara de titlu, border si zona client.
Este creata specificand stilul WS_OVERLAPPED in functia CreateWindow sau CreateWindowEx.

Note
  • ferestrele overlapped sunt in general utilizate ca fereastra principala a aplicatiei;
  • constanta WS_OVERLAPPED este definita in winuser.h si are valoarea 0 (zero);
  • in practica, in loc WS_OVERLAPPED de se utilizeaza stilul compus WS_OVERLAPPEDWINDOW; acesta adauga un border pentru dimensionare (sizing border), menu sistem, cat si butoane de maximizare si minimizare;

    Code: Select all

    #define WS_OVERLAPPEDWINDOW (WS_OVERLAPPED     | \
                                 WS_CAPTION        | \
                                 WS_SYSMENU        | \
                                 WS_THICKFRAME     | \
                                 WS_MINIMIZEBOX    | \
                                 WS_MAXIMIZEBOX)

<< Back to Windows API Index



Post Reply