Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

49 lines
1.3 KiB

/*
* RowLayout
*/
#ifndef DUI_LAYOUT_ROWLAYOUT_H_INCLUDED
#define DUI_LAYOUT_ROWLAYOUT_H_INCLUDED
#pragma once
namespace DirectUI
{
// No layout positions
////////////////////////////////////////////////////////
// RowLayout
class RowLayout : public Layout
{
public:
static HRESULT Create(int dNumParams, int* pParams, OUT Value** ppValue); // For parser
static HRESULT Create(int idShare, UINT uXAlign, UINT uYAlign, OUT Layout** ppLayout);
virtual void Attach(Element* pec);
virtual void Detach(Element* pec);
// Layout callbacks
virtual void DoLayout(Element* pec, int cx, int cy);
virtual SIZE UpdateDesiredSize(Element* pec, int cxConstraint, int cyConstraint, Surface* psrf);
virtual Element* GetAdjacent(Element* pec, Element* peFrom, int iNavDir, NavReference const* pnr, bool bKeyableOnly);
RowLayout() { }
static HRESULT InternalCreate(UINT uXAlign, UINT uYAlign, OUT Layout** ppLayout);
void Initialize(UINT uXAlign, UINT uYAlign);
virtual ~RowLayout();
protected:
SIZE _sizeDesired;
BOOL _fRecalc;
DynamicArray<Element*>* _arpeClients;
UINT* _arxCols;
UINT _cCols;
UINT _uXAlign;
UINT _uYAlign;
};
} // namespace DirectUI
#endif // DUI_LAYOUT_ROWLAYOUT_H_INCLUDED