WinapiExtension
 All Classes Files Functions Variables Typedefs Pages
Public Member Functions | List of all members
StaticCtrl Class Reference

Wrapper for static controls. More...

#include <control.h>

Inheritance diagram for StaticCtrl:
Control IWindow

Public Member Functions

 StaticCtrl (HWND hwnd=NULL)
 
HBITMAP GetBitmap ()
 
HCURSOR GetCursor ()
 
HENHMETAFILE GetEnhMetaFile ()
 
HICON GetIcon ()
 
HBITMAP SetBitmap (HBITMAP bitmap)
 
HCURSOR SetCursor (HCURSOR cursor)
 
HENHMETAFILE SetEnhMetaFile (HENHMETAFILE metafile)
 
HICON SetIcon (HICON icon)
 
void Shrink ()
 
- Public Member Functions inherited from Control
 Control (HWND hwnd=NULL)
 
HWND _InternalGetHandle ()
 
 operator HWND ()
 
Controloperator= (HWND hwnd)
 
- Public Member Functions inherited from IWindow
Rect ClientRect ()
 
void Destroy ()
 
void DragAcceptFiles (BOOL accept=TRUE)
 
void Enable (BOOL enable)
 
DWORD GetExStyle ()
 
HFONT GetFont ()
 
HICON GetIcon (BOOL bigIcon)
 
DWORD GetID ()
 
DWORD GetStyle ()
 
tstring GetText ()
 
BOOL Invalidate (const RECT *rect=NULL, BOOL eraseBkgnd=TRUE)
 
BOOL IsEnabled ()
 
BOOL IsVisible ()
 
void KillTimer (UINT_PTR timerID)
 
void ModifyStyle (DWORD add, DWORD remove)
 
void Move (int x, int y, BOOL redraw=TRUE)
 
void Move (const POINT &p, BOOL redraw=TRUE)
 
void Move (int x, int y, int width, int height, BOOL redraw=TRUE)
 
void Move (const POINT &p, const SIZE &s, BOOL redraw=TRUE)
 
void Move (const RECT &r, BOOL redraw=TRUE)
 
HWND ParentHandle ()
 
Rect RectOnParent ()
 
BOOL Redraw (const RECT *rect=NULL, HRGN region=NULL, UINT flags=RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE)
 
HWND SetFocus ()
 
void SetFont (HFONT font, BOOL redraw=TRUE)
 
HICON SetIcon (HICON icon, BOOL bigIcon)
 
void SetRedraw (BOOL allowRedraw)
 
void SetText (const tstring &text)
 
UINT_PTR SetTimer (UINT_PTR timerID, UINT interval, TIMERPROC proc=NULL)
 
BOOL Show (int cmdShow)
 
Rect WindowRect ()
 

Additional Inherited Members

- Public Attributes inherited from Control
HWND handle
 

Detailed Description

Wrapper for static controls.

Constructor & Destructor Documentation

StaticCtrl::StaticCtrl ( HWND  hwnd = NULL)
inline

Member Function Documentation

HBITMAP StaticCtrl::GetBitmap ( )
inline
HCURSOR StaticCtrl::GetCursor ( )
inline
HENHMETAFILE StaticCtrl::GetEnhMetaFile ( )
inline
HICON StaticCtrl::GetIcon ( )
inline
HBITMAP StaticCtrl::SetBitmap ( HBITMAP  bitmap)
inline
HCURSOR StaticCtrl::SetCursor ( HCURSOR  cursor)
inline
HENHMETAFILE StaticCtrl::SetEnhMetaFile ( HENHMETAFILE  metafile)
inline
HICON StaticCtrl::SetIcon ( HICON  icon)
inline
void StaticCtrl::Shrink ( )
inline

Shrink the static so it has just enough room for it's text.


The documentation for this class was generated from the following file: