Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

sjgui::CWnd Class Reference

Engine of the gui. More...

#include <wnd.h>

Inheritance diagram for sjgui::CWnd:

sjgui::CWndCtrlBase sjgui::classic::CWndCtrl sjgui::modern::CWndCtrl List of all members.

Public Types

typedef CRectTmpl< int > CRect
 Rectangle class using integers for operating with the size and position.

typedef CPointTmpl< int > CPoint
 Point class using integers.

typedef CSizeTmpl< int > CSize
 Size class using integers /author Alexander Shyrokov /version
Revision
1.1.1.1
.

typedef std::vector< CWnd * > TWnds
 Vector of pointers to the child windows.

enum  eAligns {
  ALIGN_RIGHT, ALIGN_CENTER, ALIGN_LEFT, ALIGN_TOP,
  ALIGN_BOTTOM
}
 Supported align options.

enum  eOrient { HORIZONTAL, VERTICAL }
 Possible orientations.


Public Member Functions

int GetMouseX ()
 Returns X position of the mouse.

int GetMouseY ()
 Returns Y position of the mouse.

int GetLocalMouseX ()
 Returns X position of the mouse relative to the window origin.

int GetLocalMouseY ()
 Returns Y position of the mouse relative to the window origin.

virtual void RegisterChild (CWnd *wnd)
 Register child window.

virtual void UnRegisterChild (CWnd *wnd)
 UnRegister child window.

bool IsInFocus ()
 Returns true if the window is in focus.

CWndGetFocused ()
 Returns child window in focus.

CWndGetPressed ()
 Returns child window which is currently pressed.

void SetPressed (CWnd *pWnd)
 Set pWnd as a pressed window.

bool CanAcceptFocus ()
 Returns true if window can accept focus, otherwise returns false.

bool IsAllowedForFocus ()
 Returns true if window is allowed to accept focus.

void SetAllowedForFocus (bool b=true)
 Sets ability of the window to receive focus.

void BringOnTop (CWnd *pWnd)
 Brings child window on top.

virtual CWndGetFirstChild ()
 Returns first child window.

virtual CWndGetNextChild (CWnd *pWnd)
 Returns child registred after the given one.

virtual CWndGetLastChild ()
 Returns last child window.

virtual CWndGetPrevChild (CWnd *pWnd)
 Returns child registred before the given one.

CWndGetParentWnd ()
 Returns parent window If there is no parent window returns NULL.

void SetMeFocused ()
 Sets window in focus.

void SetMeMoused ()
 Sets window as moused.

 CWnd ()
 Sets window ID and default settings.

int GetId ()
 Returns ID of the window.

void SetId (int i)
 Sets ID of the window.

void Show (bool yS=true)
 Sets visibility of the window.

void Hide ()
 Hides window.

bool IsVisible ()
 Returns true if window is visible, false otherwise.

bool IsOnWindow (int iX, int iY)
 Returns true if iX and iY are inside of the window area, false otherwise.

void Enable (bool b=true)
 Sets window as enabled or disabled.

void Disable ()
 Sets window as disabled.

bool IsEnabled ()
 Returns true if window is enabled, false otherwise.

void KeepFocus (bool b=true)
 Forces window to keep focus.

bool IsKeepingFocus ()
 Returns true if window can be released from focus.

bool IsPressed ()
 Sets window as pressed.

bool IsMoused ()
 Ready to receive focus? Returns true if window is ready to receive focus and mouse is above it.

Event generators.
These functions generate OnXXX events for children.

You need to override them only if you want to change order of execution, for exmple you want to draw not only before all children, but also you want to do something afterwards.

virtual void Draw ()
 Draws the window and all child windows.

virtual void UpdatePos ()
 Updates the absolute position of the window and all children.

virtual void Reshape ()
 Resize function, calls OnUpdatePos() and OnReshape().

virtual void KeyUp (int &iKey)
 KeyUp is called when a key (mouse button) was pressed, calls OnKeyUp().

virtual void KeyDown (int &iKey)
 KeyDown is called when a key (mouse button) is release, calls OnKeyDown().

virtual void MouseMove (int iX, int iY)
 New mouse position in coordinates of the main program window.

virtual void Animate ()
 Animate window and all child windows.

virtual void Reset ()
 Resets state of the window and all child windows.

void ReleaseFocus ()
 Releases focus if posiible.

Event functions for overriding.
These functions are called when an event happens.

virtual void OnDraw ()
 Draws the window.

virtual void OnUpdatePos ()
 Updates position of the window.

virtual void OnReshape ()
 Reshapes the window.

virtual void OnKeyUp (int &iKey)
 Is called when window receives a key up event.

virtual void OnKeyDown (int &iKey)
 Is called when window receives a key down event.

virtual void OnMouseMove (int iX, int iY)
 Is called when window receives a mouse move event.

virtual void OnAnimate ()
 Is called when window receives an animate event.

virtual void OnReset ()
 Is called when window receives a reset event.

virtual void OnFocusRecv ()
 Is called when parent window sets the focus to this window.

virtual void OnFocusDism ()
 Is called when parent window dismisses the focus from this window.

virtual void OnMouseEnter ()
 Is called when mouse enters the area above the window.

virtual void OnMouseLeave ()
 Is called when mouse leaves the area above the window.

virtual void OnShow ()
 Is called when window comes from invisible to visible state.

virtual void OnHide ()
 Is called when window comes from visible to invisible state.

Geometry functions.
CRectGetClAr ()
 Client area rectangle.

int GetX ()
 Returns X position of the window (within parent area).

int GetY ()
 Returns Y position of the window (within parent area).

int GetAbsX ()
 Returns absolute X position of the window.

int GetAbsY ()
 Returns absolute Y position of the window.

int GetBottom ()
 Returns X position of the bottom corner of the window (within parent area).

int GetRight ()
 Returns Y position of the right corner of the window (within parent area).

int GetWidth ()
 Returns width of the window.

int GetHeight ()
 Returns height of the window.

int GetScreenWidth ()
 Returns width of the screen for drawing.

int GetScreenHeight ()
 Returns height of the screen for drawing.

int GetMinWidth ()
 Returns miminum width of the window.

int GetMinHeight ()
 Returns minimum height of the window.

CRectGetAbsPos ()
 Absolute position of the window.

CRectGetPos ()
 Relative position of the window.

void SetWidth (int w)
 Sets width of the window.

void SetHeight (int h)
 Sets height of the window.

void ToCenter ()
 Postion window in the center of parent window.

void Maximize ()
 Fill all parent area.

virtual void SetPos (int iX, int iY)
 Sets X and Y position of the window.

void SetSize (CSize sz)
 Sets width and height of the window.

void SetSize (int iW, int iH)
 Sets width and height of the window.

void SetMinSize (int iW, int iH)
 Sets miminum width and height of the window.

void SetMinSize (CSize sz)
 Sets miminum width and height of the window.

void PosWnd (int iX, int iY, int iW, int iH)
 Sets position and size of the window.

void PosWnd (CRect &rec)
 Position window.


Static Public Member Functions

void SetMousePos (int iX, int iY)
 Sets global mouse position.

void SetScreenSize (int iW, int iH)
 Maximum window size available for drawing.


Protected Member Functions

virtual void ShowWindow (bool yS)
 Shows or hides window.

CWndGetNextForFocus ()
 Returns next child window available for focus.

void SetReleased ()
 Sets window as not pressed.

void SetPressed (bool b=true)
 Makes window pressed.

void SetFocusTo (CWnd *pWnd)
 Sets focus to the child window.


Protected Attributes

CRect m_Pos
 Relative position of the window.

CRect m_ClAr
 Relative client area.

CRect m_AbsPos
 Absolute position of the window.

bool m_yVisible
 True if visible.

bool m_yKeepFocus
 True if keeping focus, while enabled or visible.

bool m_yAcceptFocus
 True if can be in focus.

TWnds m_Wnds
 Stores pointers to all child windows here.


Detailed Description

Engine of the gui.

This is the base class for all the windows used for the gui.

Author:
Alexander Shyrokov
Version:
Revision
1.1.1.1


Member Typedef Documentation

typedef CPointTmpl<int> sjgui::CWnd::CPoint
 

Point class using integers.

/author Alexander Shyrokov /version

Revision
1.1.1.1

typedef CRectTmpl<int> sjgui::CWnd::CRect
 

Rectangle class using integers for operating with the size and position.

/author Alexander Shyrokov /version

Revision
1.1.1.1


Member Function Documentation

void sjgui::CWnd::Animate  )  [inline, virtual]
 

Animate window and all child windows.

OnAnimate() is called, then all child windows receive this event If you override this function do not forget to call base class implementation. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::Animate();
Also note that you must not call this from OnAnimate() function.
See also:
OnAnimate

void sjgui::CWnd::BringOnTop CWnd pWnd  )  [inline]
 

Brings child window on top.

Brings child window to the end of the drawing list, so it would be displayed above all other child windows

bool sjgui::CWnd::CanAcceptFocus  )  [inline]
 

Returns true if window can accept focus, otherwise returns false.

Window must be set to be able to accept focus, and it should be enabled and visible.

void sjgui::CWnd::Draw  )  [inline, virtual]
 

Draws the window and all child windows.

This function will be called to display the contest of the window then all child windows are drawn. OnDraw() is always executed before calling draw function. If you override this function do not forget to call base class implementation of this function. For example if you derive your class directly from CWnd then you should put the following line at the end or beginning of your function:

     CWnd::Draw();
Also note that you must not call this from OnDraw() function. All controls in sjgui are drawn using ortho projection and it is up to your class to change it to whatever you want, but do not forget to return it to the previous state.
See also:
OnDraw

Reimplemented in sjgui::classic::CWndCtrl, and sjgui::modern::CWndCtrl.

CRect& sjgui::CWnd::GetClAr  )  [inline]
 

Client area rectangle.

Area not occupied by border or any other controls belongin to the control.

CWnd * sjgui::CWnd::GetFirstChild  )  [inline, virtual]
 

Returns first child window.

Function returns pointer to the first child. Inherited classes could override this function to skip some children, that should not be accecable by other classes. Returns NULL if there is no such child. Usual ussage is:

     // Get the first child
     CWnd* pWnd=GetFirstChild(); 
     // if NULL is returned we are at the end
     while(pWnd!=NULL)
     {
        // ... do your stuf here
        pWnd=GetNextChild(pWnd); // go to the next child
     }
See also:
GetNextChild(), GetLastChild(), GetPrevChild()

CWnd* sjgui::CWnd::GetFocused  )  [inline]
 

Returns child window in focus.

If there is no child window in focus returns NULL. There could be only one child window in focus.

CWnd * sjgui::CWnd::GetLastChild  )  [inline, virtual]
 

Returns last child window.

Function returns pointer to the last child. Inherited classes could override this function to skip some children, that should not be accecable by other classes. Returns NULL if there is no such child.

See also:
GetFirstChild(), GetPrevChild(), GetNextChild()

CWnd * sjgui::CWnd::GetNextChild CWnd pWnd  )  [inline, virtual]
 

Returns child registred after the given one.

Function returns pointer to the next child after one passed in parameter. Inherited classes could override this function to skip some children, that should not be accecable by other classes. Returns NULL if there is no such child, or the given one was the last. I could return iterator, but if something was changed in between GetFirstChild() and GetNextChild() I would have a problem, so instead I choose some time penalty in time performances, by taking time to find a child with the given address.

See also:
GetFirstChild()

CWnd * sjgui::CWnd::GetNextForFocus  )  [inline, protected]
 

Returns next child window available for focus.

If no such window was found returns NULL.

CWnd* sjgui::CWnd::GetParentWnd  )  [inline]
 

Returns parent window If there is no parent window returns NULL.

See also:
RegisterChild, UnRegisterChild

CWnd* sjgui::CWnd::GetPressed  )  [inline]
 

Returns child window which is currently pressed.

If there is no child window in pressed returns NULL. There could be only one pressed child window.

CWnd * sjgui::CWnd::GetPrevChild CWnd pWnd  )  [inline, virtual]
 

Returns child registred before the given one.

Function returns pointer to the previous child after one passed in parameter. Inherited classes could override this function to skip some children, that should not be accecable by other classes. Returns NULL if there is no such child, or the given one was the first.

See also:
GetFirstChild(), GetLastChild(), GetNextChild()

void sjgui::CWnd::Hide  )  [inline]
 

Hides window.

ShowWindow(false) is called. You must not override this function.

See also:
ShowWindow

bool sjgui::CWnd::IsAllowedForFocus  )  [inline]
 

Returns true if window is allowed to accept focus.

This is the value set by SetAllowedForFocus() Window must be set to be able to accept focus, and it should be enabled and visible.

See also:
SetAllowedForFocus()

bool sjgui::CWnd::IsKeepingFocus  )  [inline]
 

Returns true if window can be released from focus.

It could be set, or if window is pressed it is not allowed to be release from focus.

See also:
KeepFocus

bool sjgui::CWnd::IsMoused  )  [inline]
 

Ready to receive focus? Returns true if window is ready to receive focus and mouse is above it.

bool sjgui::CWnd::IsOnWindow int  iX,
int  iY
[inline]
 

Returns true if iX and iY are inside of the window area, false otherwise.

iX and iY are in absolute coordinates

bool sjgui::CWnd::IsPressed  )  [inline]
 

Sets window as pressed.

See also:
SetPressed

void sjgui::CWnd::KeepFocus bool  b = true  )  [inline]
 

Forces window to keep focus.

When parent window tries to set focus to some other child, this would prevent such action.

See also:
IsKeepingFocus

void sjgui::CWnd::KeyDown int &  iKey  )  [inline, virtual]
 

KeyDown is called when a key (mouse button) is release, calls OnKeyDown().

Window calls this function of the child in focus and then process the event itself. If iKey is consumed by the function, the iKey must be set to SJ_KEY_IGNORE. OnKeyDown() is called before KeyUp() for child windows. If you override this function do not forget to call base class implementation of it. For example if you derive your class directly from CWnd then you should put the following line at the beginning of your function:

     return CWnd::KeyDown(iKey);
Also note that you must not call this from OnKeyDown() function.
See also:
OnKeyDown, KeyUp

void sjgui::CWnd::KeyUp int &  iKey  )  [inline, virtual]
 

KeyUp is called when a key (mouse button) was pressed, calls OnKeyUp().

Window calls this function of the child in focus and then process the event itself. If iKey is consumed by the function, iKey must be set to SJ_KEY_IGNORE. OnKeyUp() is called before KeyUp() for child windows. If you override this function do not forget to call base class implementation of it. For example if you derive your class directly from CWnd then you should put the following line at the beginning of your function:

     return CWnd::KeyUp(iKey);
Also note that you must not call this from OnKeyUp() function.
See also:
OnKeyUp, KeyDown, sjgui::CKeys

void sjgui::CWnd::MouseMove int  iX,
int  iY
[inline, virtual]
 

New mouse position in coordinates of the main program window.

OnMouseMove(iX,iY) is called. Then pressed child window receives the event or child window with cursor above it. If mouse enters the area above a child window OnMouseEnter() of the child window is called, if mouse leaves this area OnMouseLeave() of the child window is called. If you override this function do not forget to call base class implementation of it. For example if you derive your class directly from CWnd then you should put the following line at the end or beginning of your function:

     return CWnd::MouseMove(iKey);
Also note that you must not call this from OnMouseEnter() or OnMouseLeave() or OnMouseMove() functions.
See also:
OnMouseMove, OnMouseEnter, OnMouseLeave

virtual void sjgui::CWnd::OnAnimate  )  [inline, virtual]
 

Is called when window receives an animate event.

Is called from Animate() function. If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnAnimate();
See also:
Animate

virtual void sjgui::CWnd::OnDraw  )  [inline, virtual]
 

Draws the window.

Is called from Draw() function. If you want original behavior of the base class to be preserved you should call it directly For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnDraw();
See also:
Draw

virtual void sjgui::CWnd::OnFocusDism  )  [inline, virtual]
 

Is called when parent window dismisses the focus from this window.

If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnFocusDism();
See also:
OnFocusRecv

virtual void sjgui::CWnd::OnFocusRecv  )  [inline, virtual]
 

Is called when parent window sets the focus to this window.

If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnFocusRecv();
See also:
OnFocusDism

virtual void sjgui::CWnd::OnHide  )  [inline, virtual]
 

Is called when window comes from visible to invisible state.

If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnHide();
See also:
OnShow, Show

virtual void sjgui::CWnd::OnKeyDown int &  iKey  )  [inline, virtual]
 

Is called when window receives a key down event.

Is called from Reshape() function. If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnKeyDown(iKey);
See also:
KeyDown, KeyUp

virtual void sjgui::CWnd::OnKeyUp int &  iKey  )  [inline, virtual]
 

Is called when window receives a key up event.

Is called from Reshape() function. If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnKeyUp(iKey);
See also:
KeyUp, KeyDown

virtual void sjgui::CWnd::OnMouseEnter  )  [inline, virtual]
 

Is called when mouse enters the area above the window.

If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnMouseEnter();
See also:
OnMouseLeave, MouseMove

virtual void sjgui::CWnd::OnMouseLeave  )  [inline, virtual]
 

Is called when mouse leaves the area above the window.

If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnMouseLeave();
See also:
OnMouseEnter, MouseMove

virtual void sjgui::CWnd::OnMouseMove int  iX,
int  iY
[inline, virtual]
 

Is called when window receives a mouse move event.

Is called from MouseMove() function. If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnMouseMove(iX,iY);
See also:
MouseMove

virtual void sjgui::CWnd::OnReset  )  [inline, virtual]
 

Is called when window receives a reset event.

Is called from Reset() function. If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnReset();
See also:
Reset

virtual void sjgui::CWnd::OnReshape  )  [inline, virtual]
 

Reshapes the window.

Is called from Reshape() function. If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnReshape();
See also:
Reshape

virtual void sjgui::CWnd::OnShow  )  [inline, virtual]
 

Is called when window comes from invisible to visible state.

If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::OnShow();
See also:
OnHide, Show

void sjgui::CWnd::OnUpdatePos  )  [inline, virtual]
 

Updates position of the window.

Is called from UpdatePos() function. If you draw something on the screen and do not want to recalculate absolute position of the drawn primitives you can precalculate them using this function. Window is defined by position of the upper-left corner and widht with height. Position is relative to the parent window position, so to draw anything on the screen you would need to reset viewport or add parent positon to the current position, I decided to store absolute postion of the window also, so during the drawing I have exact values, but this means that if parent changes its position child windows should update their absolute positions too. That is why this function is implemented. Note that changing size should will require call of Reshape() to take an effect.

If you want original behavior of the base class to be preserved you should call it directly. For example if you derive your class directly from CWnd then you should put the following line at the top of your function:

     return CWnd::OnUpdatePos();
This function is called when you change position or size of the window.
See also:
UpdatePos

Reimplemented in sjgui::CWndCtrlBase.

void sjgui::CWnd::PosWnd int  iX,
int  iY,
int  iW,
int  iH
[inline]
 

Sets position and size of the window.

iX and iY are relative to the position of the parent window. The same as to call:

     SetSize(iW,iH);
     SetPos(iX,iY);
UpdatePos() is called, due to SetPos
See also:
UpdatePos, SetSize, SetPos

void sjgui::CWnd::RegisterChild CWnd wnd  )  [inline, virtual]
 

Register child window.

Attention:
Be careful calling this function when any event could occur. If called during reshaping or animation, it will invalidate iterators especially if you are using multithreading. Try to limit its usage to within constructors only! It can be overriden by parent classes to perform some additional calls or to redirect the call (example is CMDlg)
See also:
UnRegisterChild(), CMDlg

void sjgui::CWnd::Reset  )  [inline, virtual]
 

Resets state of the window and all child windows.

OnReset() is called, then all child windows receive this event If you override this function do not forget to call base class implementation. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::Reset();
Also note that you must not call this from OnReset() function.
See also:
OnReset

void sjgui::CWnd::Reshape  )  [inline, virtual]
 

Resize function, calls OnUpdatePos() and OnReshape().

This function will be called to resize the window then all child windows will be resized. OnUpdatePos() and OnReshape() is executed before calling Resize() function of the child. If you override this function do not forget to call base class implementation of it. For example if you derive your class directly from CWnd then you should put the following line at the end of your function:

     return CWnd::Reshape();
See also:
OnUpdatePos(), OnReshape()

void sjgui::CWnd::SetAllowedForFocus bool  b = true  )  [inline]
 

Sets ability of the window to receive focus.

By default window can accept focus, but sometimes it is not needed like in case of the static label. If you set it to false and widnow already is in a focus, it will be released.

void sjgui::CWnd::SetFocusTo CWnd pWnd  )  [inline, protected]
 

Sets focus to the child window.

pWnd must be window registered with RegisterChild. OnFocusRecv() or/and OnFocusDism() could be called as a result. Use NULL to release the focus, OnFocusDism() could be called.

See also:
RegisterChild, OnFocusRecv, OnFocusDism

void sjgui::CWnd::SetHeight int  h  )  [inline]
 

Sets height of the window.

Given value should be more then value set by SetMinSize(). Call Reshape() to apply.

void sjgui::CWnd::SetMinSize int  iW,
int  iH
[inline]
 

Sets miminum width and height of the window.

If you want to set window size smaller then these values, it will not change it's size, defaults are 0,0.

void sjgui::CWnd::SetMousePos int  iX,
int  iY
[inline, static]
 

Sets global mouse position.

Should be used to set the global values of the mouse position. Must be called by the function which receives mouse events. This function does not change actual mouse position

void sjgui::CWnd::SetPos int  iX,
int  iY
[inline, virtual]
 

Sets X and Y position of the window.

iX and iY are relative to the position of the parent window. UpdatePos() is called.

See also:
UpdatePos

void sjgui::CWnd::SetPressed CWnd pWnd  )  [inline]
 

Set pWnd as a pressed window.

pWnd must be a child of this window, otherwise assertion is called.

void sjgui::CWnd::SetPressed bool  b = true  )  [inline, protected]
 

Makes window pressed.

Should be called when window receives and accepts key down event

See also:
KeyDown

void sjgui::CWnd::SetScreenSize int  iW,
int  iH
[inline, static]
 

Maximum window size available for drawing.

Should be used to set the maximum window size available for drawing for right now is not used. This must be set by the function which responds to the resize event of the window.

void sjgui::CWnd::SetWidth int  w  )  [inline]
 

Sets width of the window.

Given value should be more then value set by SetMinSize(). Call Reshape() to apply.

void sjgui::CWnd::Show bool  yS = true  )  [inline]
 

Sets visibility of the window.

ShowWindow() is called. You must not override this function.

See also:
ShowWindow

void sjgui::CWnd::ShowWindow bool  yS  )  [inline, protected, virtual]
 

Shows or hides window.

OnShow() or OnHide() is called. Also focus is release from the child window. So OnFocusDism() of child window in focus could be called.

See also:
OnShow, OnHide

void sjgui::CWnd::UnRegisterChild CWnd wnd  )  [inline, virtual]
 

UnRegister child window.

Attention:
Be careful calling this function when any event could occur. If called during reshaping or animation, it will invalidate iterators especially if you are using multithreading. It can be overriden by parent classes to perform some additional calls or to redirect the call (example is CMDlg)
See also:
RegisterChild

void sjgui::CWnd::UpdatePos  )  [inline, virtual]
 

Updates the absolute position of the window and all children.

Calls OnUpdatePos(), before children are positioned. Do not forget to call the base class implementation For example if you derive your class directly from CWnd then you should put the following line at the start of your function:

     return CWnd::UpdatePos();
This function is called when you change position or size of the window.
See also:
OnUpdatePos, SetPos


The documentation for this class was generated from the following file:
sjgui logo
Quick Links:

 News
 Description
 Screen Shots
 Projects
 Downloads
 Source Code
 Help/FAQ
 Want to help?
 Credits
 Disclaimer


Documentation:

 Documentation
 Reference
 Lessons


Useful links:

sjcomp logo
sjcomp

opengl logo

nehe logo

SourceForge.net Logo

Last modified:


Started by Alexander Shyrokov. Generated at Wed Apr 28 12:31:06 2004 for the sjgui by doxygen 1.3.1. SourceForge.net Logo